From: Eduardo Mucelli R. Oliveira Date: Wed, 29 Jan 2014 17:39:30 +0000 (+0100) Subject: Putting the live_validate feature, present on the docs but missing on the code. X-Git-Tag: v5.2.0~69^2~2^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F4268%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Putting the live_validate feature, present on the docs but missing on the code. --- diff --git a/js/foundation/foundation.abide.js b/js/foundation/foundation.abide.js index 1b3691f2d..f2c00f7f7 100644 --- a/js/foundation/foundation.abide.js +++ b/js/foundation/foundation.abide.js @@ -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);