add tax column jquery issue solved.

This commit is contained in:
cuneytsenturk
2018-12-24 18:00:53 +03:00
parent efeaacd693
commit adcc68991f
6 changed files with 102 additions and 0 deletions

View File

@ -157,5 +157,22 @@
}
});
});
$(document).on('hidden.bs.modal', '#modal-create-tax', function () {
$('#tax_id').select2({
placeholder: {
id: '-1', // the value of the option
text: "{{ trans('general.form.select.field', ['field' => trans_choice('general.taxes', 1)]) }}"
},
escapeMarkup: function (markup) {
return markup;
},
language: {
noResults: function () {
return '<span id="tax-add-new"><i class="fa fa-plus-circle"></i> {{ trans('general.title.new', ['type' => trans_choice('general.tax_rates', 1)]) }}</span>';
}
}
});
});
</script>
@endpush