close #450 Enhancement : Delete select2 selected item

This commit is contained in:
cuneytsenturk
2018-08-13 11:45:28 +03:00
parent 9bdf2c203c
commit b96fb2af85
10 changed files with 56 additions and 14 deletions

View File

@ -72,7 +72,10 @@
$('#name').focus();
$("#tax_id").select2({
placeholder: "{{ trans('general.form.select.field', ['field' => trans_choice('general.taxes', 1)]) }}"
placeholder: {
id: '-1', // the value of the option
text: "{{ trans('general.form.select.field', ['field' => trans_choice('general.taxes', 1)]) }}"
}
});
$("#category_id").select2({