Browse Source

Merge pull request #306 from johanronn77/master

Fixed greaterThan inclusive option
Phuoc Nguyen 11 years ago
parent
commit
55b128412d
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));