mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Fixed the javascript to check a numeric field when it is empty. TICKET: #2176
(cherry picked from commit 905d768322dc2b12f302374c91efa6539c8586ab)
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) {
|
function only_numbers(name) {
|
||||||
var value = $("input[name='" + name + "']").val();
|
var value = $("input[name='" + name + "']").val();
|
||||||
|
|
||||||
|
if (value == "") {
|
||||||
|
// Do none it is a empty field.
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
value = parseInt(value);
|
value = parseInt(value);
|
||||||
|
|
||||||
if (isNaN(value)) {
|
if (isNaN(value)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user