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

@ -191,7 +191,10 @@
$('[data-toggle="tooltip"]').tooltip('hide');
$('#item-row-' + item_row + ' .tax-select2').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)]) }}"
}
});
item_row++;
@ -217,7 +220,10 @@
});
$(".tax-select2").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)]) }}"
}
});
$("#customer_id").select2({