};
ns.update_exchangerate = function(event) {
+ if (!ns.check_cv()) {
+ $('#order_currency_id').val($('#old_currency_id').val());
+ return;
+ }
+
var rate_input = $('#order_exchangerate_as_null_number');
rate_input.prop('disabled', true);
} else {
rate_text.text('');
rate_input.prop('disabled', false);
- rate_input.show().val(0);
+ rate_input.show().val('');
}
$('#exchangerate_settings').show();
} else {