[MT2338] Prevents users to check 'active' with a currency different from 1
This commit is contained in:
parent
ce673f13d9
commit
cbf9c7497f
|
|
@ -37,6 +37,16 @@
|
|||
|
||||
$(document).ready(function() {
|
||||
new YAHOO.widget.Button("newcurrency");
|
||||
|
||||
// prevents users to check active with a currency != 1
|
||||
$("#rate").keyup(function() {
|
||||
if ( $(this).val() == 1.0 ) {
|
||||
$("#active").removeAttr('disabled');
|
||||
} else {
|
||||
$("#active").removeAttr('checked');
|
||||
$("#active").attr('disabled','disabled');
|
||||
}
|
||||
});
|
||||
});
|
||||
//]]>
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Reference in New Issue