From 361ef6c49fcbd30b8d55f34d5a97ff1995019031 Mon Sep 17 00:00:00 2001 From: tDidierjean Date: Fri, 11 May 2012 12:49:57 +0000 Subject: [PATCH] [-] BO : fix #PSCFV-2177 - js bug with default supplier selection --- js/admin-products.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/js/admin-products.js b/js/admin-products.js index 7e5b00475..50382187b 100644 --- a/js/admin-products.js +++ b/js/admin-products.js @@ -1212,18 +1212,18 @@ product_tabs['Suppliers'] = new function(){ }; this.onReady = function(){ - $('.supplierCheckBox').click(function() { + $('.supplierCheckBox').live('click', function() { var check = $(this); var checkbox = $('#default_supplier_'+check.val()); if (this.checked) { - //enable default radio button associated - checkbox.attr("disabled",""); + // enable default radio button associated + checkbox.removeAttr('disabled'); } else { - //enable default radio button associated - checkbox.attr("disabled","disabled"); + // disable default radio button associated + checkbox.attr('disabled', true); } //manage default supplier check self.manageDefaultSupplier();