Fixed the javascript to check a numeric field when it is empty. TICKET: #2176
(cherry picked from commit 905d768322
)
This commit is contained in:
parent
a8aa6f18d6
commit
0eafdac3ff
|
@ -578,6 +578,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