Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
musicman3 committed Jan 6, 2021
1 parent bba9e6d commit e8d4746
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions controller/admin/pages/stock/js/js.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
<script type="text/javascript" src="/model/js/classes/images/fileupload_product.js"></script>

<script type="text/javascript">
var resize_max = $.parseJSON('<?php echo $resize_max ?>');
var resize_max_prod = $.parseJSON('<?php echo $resize_max_prod ?>');
var lang = $.parseJSON('<?php echo $lang_js ?>');
var resize_max = JSON.parse('<?php echo $resize_max ?>');
var resize_max_prod = JSON.parse('<?php echo $resize_max_prod ?>');
var lang = JSON.parse('<?php echo $lang_js ?>');
new Fileupload(resize_max, lang);
new FileuploadProduct(resize_max_prod, lang);
</script>
Expand Down
1 change: 1 addition & 0 deletions model/js/classes/attributes/attributes.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ class Attributes {
*/
static deleteValue(lang) {
$('.delete-attribute').confirmation({
rootSelector: '[data-toggle=confirmation]',
onConfirm: function (event) {
$(this).closest('tr').remove();

Expand Down
1 change: 1 addition & 0 deletions model/js/classes/attributes/group_attributes.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ class GroupAttributes {
*/
static deleteValue(lang) {
$('.delete-group-attribute').confirmation({
rootSelector: '[data-toggle=confirmation]',
onConfirm: function (event) {
$(this).closest('tr').remove();

Expand Down
1 change: 1 addition & 0 deletions model/js/classes/attributes/values_attribute.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ class ValuesAttribute {
*/
static deleteValue(lang) {
$('.delete-value-attribute').confirmation({
rootSelector: '[data-toggle=confirmation]',
onConfirm: function (event) {
$(this).closest('tr').remove();

Expand Down

0 comments on commit e8d4746

Please sign in to comment.