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
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…
x
Reference in New Issue
Block a user