close #450 Enhancement : Delete select2 selected item
This commit is contained in:
parent
9bdf2c203c
commit
b96fb2af85
@ -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({
|
||||
|
@ -60,7 +60,10 @@
|
||||
|
||||
$(document).ready(function(){
|
||||
$("#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({
|
||||
|
@ -188,7 +188,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++;
|
||||
@ -212,7 +215,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)]) }}"
|
||||
}
|
||||
});
|
||||
|
||||
$("#vendor_id").select2({
|
||||
|
@ -192,7 +192,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++;
|
||||
@ -218,7 +221,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)]) }}"
|
||||
}
|
||||
});
|
||||
|
||||
$("#vendor_id").select2({
|
||||
|
@ -105,7 +105,10 @@
|
||||
});
|
||||
|
||||
$("#vendor_id").select2({
|
||||
placeholder: "{{ trans('general.form.select.field', ['field' => trans_choice('general.vendors', 1)]) }}"
|
||||
placeholder: {
|
||||
id: '-1', // the value of the option
|
||||
text: "{{ trans('general.form.select.field', ['field' => trans_choice('general.vendors', 1)]) }}"
|
||||
}
|
||||
});
|
||||
|
||||
$("#payment_method").select2({
|
||||
|
@ -103,7 +103,10 @@
|
||||
});
|
||||
|
||||
$("#vendor_id").select2({
|
||||
placeholder: "{{ trans('general.form.select.field', ['field' => trans_choice('general.vendors', 1)]) }}"
|
||||
placeholder: {
|
||||
id: '-1', // the value of the option
|
||||
text: "{{ trans('general.form.select.field', ['field' => trans_choice('general.vendors', 1)]) }}"
|
||||
}
|
||||
});
|
||||
|
||||
$("#payment_method").select2({
|
||||
|
@ -187,7 +187,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++;
|
||||
@ -211,7 +214,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({
|
||||
|
@ -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({
|
||||
|
@ -105,7 +105,10 @@
|
||||
});
|
||||
|
||||
$("#customer_id").select2({
|
||||
placeholder: "{{ trans('general.form.select.field', ['field' => trans_choice('general.customers', 1)]) }}"
|
||||
placeholder: {
|
||||
id: '-1', // the value of the option
|
||||
text: "{{ trans('general.form.select.field', ['field' => trans_choice('general.customers', 1)]) }}"
|
||||
}
|
||||
});
|
||||
|
||||
$("#payment_method").select2({
|
||||
|
@ -103,7 +103,10 @@
|
||||
});
|
||||
|
||||
$("#customer_id").select2({
|
||||
placeholder: "{{ trans('general.form.select.field', ['field' => trans_choice('general.customers', 1)]) }}"
|
||||
placeholder: {
|
||||
id: '-1', // the value of the option
|
||||
text: "{{ trans('general.form.select.field', ['field' => trans_choice('general.customers', 1)]) }}"
|
||||
}
|
||||
});
|
||||
|
||||
$("#payment_method").select2({
|
||||
|
Loading…
x
Reference in New Issue
Block a user