// Products multistore design

This commit is contained in:
Jerome Nadaud
2013-09-24 12:29:12 +02:00
parent 6e2337df44
commit c9eb5b5be6
8 changed files with 126 additions and 88 deletions
+9 -2
View File
@@ -1565,7 +1565,14 @@ var ProductMultishop = new function()
break;
case 'category_box' :
$('#categories-treeview input[type=checkbox]').attr('disabled', checked);
$('#'+id+' input[type=checkbox]').attr('disabled', checked);
if (!checked) {
$('#check-all-'+id).removeAttr('disabled');
$('#uncheck-all-'+id).removeAttr('disabled');
} else {
$('#check-all-'+id).attr('disabled', 'disabled');
$('#uncheck-all-'+id).attr('disabled', 'disabled');
}
break;
case 'attribute_weight_impact' :
@@ -1633,7 +1640,7 @@ var ProductMultishop = new function()
this.checkAllAssociations = function()
{
ProductMultishop.checkField($('input[name=\'multishop_check[id_category_default]\']').prop('checked'), 'id_category_default');
ProductMultishop.checkField($('input[name=\'multishop_check[id_category_default]\']').prop('checked'), 'categories-treeview', 'category_box');
ProductMultishop.checkField($('input[name=\'multishop_check[id_category_default]\']').prop('checked'), 'associated-categories-tree', 'category_box');
};
this.checkAllCustomization = function()