Fixed the javascript to check a numeric field when it is empty. TICKET: #2176
This commit is contained in:
parent
6ec7592698
commit
905d768322
|
@ -507,6 +507,11 @@ function added_ids_sorted_items_to_hidden_input() {
|
|||
function only_numbers(name) {
|
||||
var value = $("input[name='" + name + "']").val();
|
||||
|
||||
if (value == "") {
|
||||
// Do none it is a empty field.
|
||||
return;
|
||||
}
|
||||
|
||||
value = parseInt(value);
|
||||
|
||||
if (isNaN(value)) {
|
||||
|
|
Loading…
Reference in New Issue