// Fix click on "all" checkbox on adminproduct for multishop
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15143 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
|
||||
{if isset($display_multishop_checkboxes) && $display_multishop_checkboxes}
|
||||
<label style="float: none">
|
||||
<input type="checkbox" style="vertical-align: text-bottom" onclick="$('input[name^=\'multishop_check[\']').attr('checked', this.checked); ProductMultishop.checkAll{$product_tab}()" />
|
||||
<input type="checkbox" style="vertical-align: text-bottom" onclick="$('#product-tab-content-{$product_tab} input[name^=\'multishop_check[\']').attr('checked', this.checked); ProductMultishop.checkAll{$product_tab}()" />
|
||||
{l s='Check / uncheck all (you are editing this page for several shops, some fields like "name" or "price" are disabled, you have to check these fields in order to edit them for these shops)'}
|
||||
</label>
|
||||
{/if}
|
||||
@@ -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.'}
|
||||
</div>
|
||||
|
||||
{include file="controllers/products/multishop/check_fields.tpl" product_tab="Price"}
|
||||
{include file="controllers/products/multishop/check_fields.tpl" product_tab="Prices"}
|
||||
|
||||
<div class="separation"></div>
|
||||
<table>
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user