[-] BO : fix #PSCFV-2177 - js bug with default supplier selection
This commit is contained in:
@@ -1212,18 +1212,18 @@ product_tabs['Suppliers'] = new function(){
|
|||||||
};
|
};
|
||||||
|
|
||||||
this.onReady = function(){
|
this.onReady = function(){
|
||||||
$('.supplierCheckBox').click(function() {
|
$('.supplierCheckBox').live('click', function() {
|
||||||
var check = $(this);
|
var check = $(this);
|
||||||
var checkbox = $('#default_supplier_'+check.val());
|
var checkbox = $('#default_supplier_'+check.val());
|
||||||
if (this.checked)
|
if (this.checked)
|
||||||
{
|
{
|
||||||
//enable default radio button associated
|
// enable default radio button associated
|
||||||
checkbox.attr("disabled","");
|
checkbox.removeAttr('disabled');
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
//enable default radio button associated
|
// disable default radio button associated
|
||||||
checkbox.attr("disabled","disabled");
|
checkbox.attr('disabled', true);
|
||||||
}
|
}
|
||||||
//manage default supplier check
|
//manage default supplier check
|
||||||
self.manageDefaultSupplier();
|
self.manageDefaultSupplier();
|
||||||
|
|||||||
Reference in New Issue
Block a user