X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/5eb6ef419dbca3d5776bed35053e1eec0fb8820a..67dcea83ce7512a5719b34584fbbdc56ed0825e6:/js/kivi.Validator.js diff --git a/js/kivi.Validator.js b/js/kivi.Validator.js index c8e02c63e..af1142559 100644 --- a/js/kivi.Validator.js +++ b/js/kivi.Validator.js @@ -21,8 +21,10 @@ namespace("kivi.Validator", function(ns) { var to_check = $(selector + ' [data-validate]').toArray(); for (var to_check_idx in to_check) - if (!ns.validate($(to_check[to_check_idx]))) + if (!ns.validate($(to_check[to_check_idx]))) { + $(to_check[to_check_idx]).focus(); return false; + } return true; };