close #450 Enhancement : Delete select2 selected item
This commit is contained in:
		@@ -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({
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user