From bc16e41c7362d56c2bd2304e90bdfbe49a842e0f Mon Sep 17 00:00:00 2001 From: zhouxudong Date: Thu, 30 Jun 2022 02:44:29 +0000 Subject: [PATCH] * Fix bug #24472. --- module/product/js/all.js | 2 ++ module/product/view/all.html.php | 1 + module/program/js/browse.js | 2 ++ module/program/view/browse.html.php | 1 + 4 files changed, 6 insertions(+) diff --git a/module/product/js/all.js b/module/product/js/all.js index 59c2438291..9d18908c92 100644 --- a/module/product/js/all.js +++ b/module/product/js/all.js @@ -70,7 +70,9 @@ $(function() { 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 = "
" + summary + "
"; + if(checkedLength > 0) { $('#productsSummary').remove(); diff --git a/module/product/view/all.html.php b/module/product/view/all.html.php index 55ff1f0cf0..0ac5a3c677 100644 --- a/module/product/view/all.html.php +++ b/module/product/view/all.html.php @@ -256,6 +256,7 @@ product->checkedProducts);?> +app->getClientLang());?>