projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5eb6ef4
)
kivi.Validator: Bei validate_all das erste fehlschlagende Element fokussieren
author
Sven Schöling
<s.schoeling@linet-services.de>
Fri, 13 Oct 2017 13:45:05 +0000
(15:45 +0200)
committer
Sven Schöling
<s.schoeling@linet-services.de>
Fri, 13 Oct 2017 13:45:45 +0000
(15:45 +0200)
js/kivi.Validator.js
patch
|
blob
|
history
diff --git
a/js/kivi.Validator.js
b/js/kivi.Validator.js
index
c8e02c6
..
af11425
100644
(file)
--- 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;
};