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

@ -159,5 +159,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> </script>
@endpush @endpush

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> </script>
@endpush @endpush

View File

@ -505,6 +505,23 @@
}); });
}); });
$(document).on('hidden.bs.modal', '#modal-create-tax', function () {
$('.tax-select2').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>';
}
}
});
});
function totalItem() { function totalItem() {
$.ajax({ $.ajax({
url: '{{ url("common/items/totalItem") }}', url: '{{ url("common/items/totalItem") }}',

View File

@ -482,6 +482,23 @@
}); });
}); });
$(document).on('hidden.bs.modal', '#modal-create-tax', function () {
$('.tax-select2').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>';
}
}
});
});
function totalItem() { function totalItem() {
$.ajax({ $.ajax({
url: '{{ url("common/items/totalItem") }}', url: '{{ url("common/items/totalItem") }}',

View File

@ -506,6 +506,23 @@
}); });
}); });
$(document).on('hidden.bs.modal', '#modal-create-tax', function () {
$('.tax-select2').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>';
}
}
});
});
function totalItem() { function totalItem() {
$.ajax({ $.ajax({
url: '{{ url("common/items/totalItem") }}', url: '{{ url("common/items/totalItem") }}',

View File

@ -482,6 +482,23 @@
}); });
}); });
$(document).on('hidden.bs.modal', '#modal-create-tax', function () {
$('.tax-select2').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>';
}
}
});
});
function totalItem() { function totalItem() {
$.ajax({ $.ajax({
url: '{{ url("common/items/totalItem") }}', url: '{{ url("common/items/totalItem") }}',