From b55b9ddbfd156435e79796fb812f910fd0927a6b Mon Sep 17 00:00:00 2001 From: rMalie Date: Thu, 10 May 2012 08:07:12 +0000 Subject: [PATCH] // Fix click on "all" checkbox on adminproduct for multishop --- .../template/controllers/products/multishop/check_fields.tpl | 2 +- .../themes/default/template/controllers/products/prices.tpl | 2 +- js/admin-products.js | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/admin-dev/themes/default/template/controllers/products/multishop/check_fields.tpl b/admin-dev/themes/default/template/controllers/products/multishop/check_fields.tpl index 414c1340d..3647a8928 100644 --- a/admin-dev/themes/default/template/controllers/products/multishop/check_fields.tpl +++ b/admin-dev/themes/default/template/controllers/products/multishop/check_fields.tpl @@ -26,7 +26,7 @@ {if isset($display_multishop_checkboxes) && $display_multishop_checkboxes} {/if} \ No newline at end of file diff --git a/admin-dev/themes/default/template/controllers/products/prices.tpl b/admin-dev/themes/default/template/controllers/products/prices.tpl index 80bf42a5b..575bcb578 100644 --- a/admin-dev/themes/default/template/controllers/products/prices.tpl +++ b/admin-dev/themes/default/template/controllers/products/prices.tpl @@ -107,7 +107,7 @@ jQuery(document).ready(Customer.init); {l s='You must enter either the pre-tax retail price, or the retail price with tax. The input field will be automatically calculated.'} -{include file="controllers/products/multishop/check_fields.tpl" product_tab="Price"} +{include file="controllers/products/multishop/check_fields.tpl" product_tab="Prices"}
diff --git a/js/admin-products.js b/js/admin-products.js index adfc382ae..8a4a0f2b5 100644 --- a/js/admin-products.js +++ b/js/admin-products.js @@ -554,7 +554,7 @@ product_tabs['Prices'] = new function(){ self.bindDelete(); if (display_multishop_checkboxes) - ProductMultishop.checkAllPrice(); + ProductMultishop.checkAllPrices(); }; } @@ -1494,7 +1494,7 @@ var ProductMultishop = new function() }); }; - this.checkAllPrice = function() + this.checkAllPrices = function() { ProductMultishop.checkField($('input[name=\'multishop_check[wholesale_price]\']').prop('checked'), 'wholesale_price'); ProductMultishop.checkField($('input[name=\'multishop_check[price]\']').prop('checked'), 'price', 'price');