Fixed the javascript to check a numeric field when it is empty. TICKET: #2176

This commit is contained in:
mdtrooper 2015-06-09 11:43:46 +02:00
parent 6ec7592698
commit 905d768322
1 changed files with 5 additions and 0 deletions

View File

@ -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)) {