// id_warehouse is now on the order details and not on orders table

This commit is contained in:
mDeflotte
2011-12-01 14:31:26 +00:00
parent 7e336331d9
commit 47b6290eb7
9 changed files with 49 additions and 25 deletions
+16
View File
@@ -224,3 +224,19 @@ function resizeAddressesBox(nameBox)
});
$(nameBox).height(maxHeight);
}
$(document).ready(function() {
$.fn.checkboxChange = function(fnChecked, fnUnchecked) {
if ($(this).attr('checked') && fnChecked)
fnChecked.call(this);
else if(fnUnchecked)
fnUnchecked.call(this);
console.log('fff');
if (!$(this).attr('eventCheckboxChange'))
{
$(this).live('change', function() { $(this).checkboxChange(fnChecked, fnUnchecked) });
$(this).attr('eventCheckboxChange', true);
}
}
});