]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Allow for decimals in Abide `number` pattern 4861/head
authorSimon Wade <simon.wade@gmail.com>
Thu, 27 Mar 2014 10:56:42 +0000 (21:56 +1100)
committerSimon Wade <simon.wade@gmail.com>
Mon, 31 Mar 2014 23:11:16 +0000 (10:11 +1100)
js/foundation/foundation.abide.js

index 4de5b08bba67b88dc7861817030450604f50a053..45d01562638581ee802b59452b2162de9fb56d88 100644 (file)
       // Has to count up to make sure the focus gets applied to the top error
       for (var i=0; i < validation_count; i++) {
         if (!validations[i] && (submit_event || is_ajax)) {
-          if (this.settings.focus_on_invalid) els[i].focus();
+          if (settings.focus_on_invalid) els[i].focus();
           form.trigger('invalid');
           this.S(els[i]).closest('[data-' + this.attr_name(true) + ']').attr(this.invalid_attr, '');
           return false;