Browse Source

Fixed GreaterThan include option

Johan Rönn 11 years ago
parent
commit
184116dd62
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/js/validator/greaterThan.js

+ 2 - 2
src/js/validator/greaterThan.js

@@ -33,8 +33,8 @@
             if (value == '') {
                 return true;
             }
-            value = parseFloat(value);
-            return (options.inclusive === true) ? (value > options.value) : (value >= options.value);
+            value = parseFloat(value);           
+			return (options.inclusive === false || options.inclusive==undefined) ? (value >= options.value) : (value > options.value);
         }
     }
 }(window.jQuery));