[-] BO : fix #PSCFV-2177 - js bug with default supplier selection
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15221 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user