]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Putting the live_validate feature, present on the docs but missing on the code. 4268/head
authorEduardo Mucelli R. Oliveira <edumucelli@gmail.com>
Wed, 29 Jan 2014 17:39:30 +0000 (18:39 +0100)
committerEduardo Mucelli R. Oliveira <edumucelli@gmail.com>
Wed, 29 Jan 2014 17:39:30 +0000 (18:39 +0100)
js/foundation/foundation.abide.js

index 1b3691f2d07a710117c319a6259300a99d8dfc62..f2c00f7f7976f99fc004d083ae1528b1aa6deeec 100644 (file)
@@ -68,8 +68,8 @@
             self.validate([this], e);
           })
           .on('keydown.fndtn.abide', function (e) {
-            if (live_validate === true) {
-              var settings = $(this).closest('form').data('abide-init');
+            var settings = $(this).closest('form').data('abide-init');
+            if (settings.live_validate === true) {
               clearTimeout(self.timer);
               self.timer = setTimeout(function () {
                 self.validate([this], e);