Commit ba38a3cfbefbeee03ab958c4b9014d161c01249c
Committed by
Caio
1 parent
5768e862
Exists in
master
and in
23 other branches
[Mezuro] fixed integer validation
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
plugins/mezuro/public/javascripts/validations.js
@@ -55,7 +55,7 @@ function validate_new_range_configuration(event){ | @@ -55,7 +55,7 @@ function validate_new_range_configuration(event){ | ||
55 | alert("Beginning, End and Grade must be numeric values"); | 55 | alert("Beginning, End and Grade must be numeric values"); |
56 | return false; | 56 | return false; |
57 | } | 57 | } |
58 | - if (beginning > end) | 58 | + if (parseInt(beginning) > parseInt(end)) |
59 | { | 59 | { |
60 | alert("End must be greater than Beginning"); | 60 | alert("End must be greater than Beginning"); |
61 | return false; | 61 | return false; |