[-] BO: Fix #PSCFV-5706 save of product availability on global context

This commit is contained in:
Rémi Gaillard
2012-12-03 17:53:47 +01:00
parent f8365220e2
commit 627125e1de
2 changed files with 22 additions and 4 deletions
+11
View File
@@ -1226,6 +1226,8 @@ product_tabs['Quantities'] = new function(){
self.refreshQtyAvailabilityForm();
self.ajaxCall({actionQty: 'out_of_stock', value: $(this).val()});
});
if (display_multishop_checkboxes)
ProductMultishop.checkAllQuantities();
self.refreshQtyAvailabilityForm();
};
@@ -1574,6 +1576,15 @@ var ProductMultishop = new function()
ProductMultishop.checkField($('input[name=\'multishop_check[link_rewrite]['+v.id_lang+']\']').prop('checked'), 'link_rewrite_'+v.id_lang);
});
};
this.checkAllQuantities = function()
{
$.each(languages, function(k, v)
{
ProductMultishop.checkField($('input[name=\'multishop_check[available_later]['+v.id_lang+']\']').prop('checked'), 'available_later_'+v.id_lang);
ProductMultishop.checkField($('input[name=\'multishop_check[available_now]['+v.id_lang+']\']').prop('checked'), 'available_now_'+v.id_lang);
});
};
this.checkAllAssociations = function()
{