diff --git a/module/product/js/all.js b/module/product/js/all.js index 13815ef5b6..fd69289343 100644 --- a/module/product/js/all.js +++ b/module/product/js/all.js @@ -1,13 +1,13 @@ $("#" + browseType + "Tab").addClass('btn-active-text'); $(function() { - $('#productListForm .c-checkbox').hide(); + $('#productListForm .c-checkbox, #productListForm .check-all').hide(); $('input[name^="showEdit"]').click(function() { - $('#productListForm .c-checkbox').hide(); + $('#productListForm .c-checkbox, #productListForm .check-all').hide(); var showEdit = $(this).is(':checked') ? 1 : 0; - if(showEdit) $('#productListForm .c-checkbox').show(); + if(showEdit) $('#productListForm .c-checkbox, #productListForm .check-all').show(); }); /* Init table sort. */ @@ -78,17 +78,21 @@ $(function() function addStatistic() { var checkedLength = $(":checkbox[name^='productIDList']:checked").length; - var summary = checkedProducts.replace('%s', checkedLength); - if(cilentLang == "en" && checkedLength < 2) summary = summary.replace('products', 'product'); - var statistic = "