[-] BO : #PSCFV-3366 - Not possible to create customizable fields on multishop context

This commit is contained in:
mDeflotte
2012-08-01 08:15:35 +00:00
parent 465097d075
commit 202728403c
3 changed files with 22 additions and 3 deletions
+12
View File
@@ -27,6 +27,12 @@
// The ProductTabsManager instance will make sure the onReady() methods of each tabs are executed once the tab has loaded
var product_tabs = [];
product_tabs['Customization'] = new function(){
this.onReady = function(){
if (display_multishop_checkboxes)
ProductMultishop.checkAllCustomization();
}
}
product_tabs['Combinations'] = new function(){
var self = this;
this.bindEdit = function(){
@@ -1543,6 +1549,12 @@ var ProductMultishop = new function()
ProductMultishop.checkField($('input[name=\'multishop_check[id_category_default]\']').prop('checked'), 'categories-treeview', 'category_box');
};
this.checkAllCustomization = function()
{
ProductMultishop.checkField($('input[name=\'multishop_check[uploadable_files]\']').prop('checked'), 'uploadable_files');
ProductMultishop.checkField($('input[name=\'multishop_check[text_fields]\']').prop('checked'), 'text_fields');
};
this.checkAllCombinations = function()
{
ProductMultishop.checkField($('input[name=\'multishop_check[attribute_wholesale_price]\']').prop('checked'), 'attribute_wholesale_price');