From d635d3697d19a01f6224ae969d41c3f07103f5d5 Mon Sep 17 00:00:00 2001 From: "Eduardo Mucelli R. Oliveira" Date: Wed, 29 Jan 2014 18:39:30 +0100 Subject: [PATCH] Putting the live_validate feature, present on the docs but missing on the code. --- js/foundation/foundation.abide.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.47.2