// Fix click on "all" checkbox on adminproduct for multishop
This commit is contained in:
1 parent
273df904cb
commit
b55b9ddbfd
3 files changed
+4
-4
No files matched your search
@@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
{if isset($display_multishop_checkboxes) && $display_multishop_checkboxes}
|
{if isset($display_multishop_checkboxes) && $display_multishop_checkboxes}
|
||||||
<label style="float: none">
|
<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)'}
|
{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>
|
</label>
|
||||||
{/if}
|
{/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.'}
|
{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>
|
</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>
|
<div class="separation"></div>
|
||||||
<table>
|
<table>
|
||||||
|
|||||||
@@ -554,7 +554,7 @@ product_tabs['Prices'] = new function(){
|
|||||||
self.bindDelete();
|
self.bindDelete();
|
||||||
|
|
||||||
if (display_multishop_checkboxes)
|
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[wholesale_price]\']').prop('checked'), 'wholesale_price');
|
||||||
ProductMultishop.checkField($('input[name=\'multishop_check[price]\']').prop('checked'), 'price', 'price');
|
ProductMultishop.checkField($('input[name=\'multishop_check[price]\']').prop('checked'), 'price', 'price');
|
||||||
|
|||||||
Reference in new issue
Block a user