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:
8237252
)
kivi.Validator: Leere Checks ignorieren
author
Sven Schöling
<s.schoeling@linet-services.de>
Fri, 13 Oct 2017 16:19:00 +0000
(18:19 +0200)
committer
Sven Schöling
<s.schoeling@linet-services.de>
Fri, 13 Oct 2017 16:19:00 +0000
(18:19 +0200)
Ermöglicht so etwas in templates:
L.some_tag(....,
"data-validate"=INSTANCE_CONF.get_some_value) ? "required" : ""
)
js/kivi.Validator.js
patch
|
blob
|
history
diff --git
a/js/kivi.Validator.js
b/js/kivi.Validator.js
index
b1bc87c
..
e486927
100644
(file)
--- a/
js/kivi.Validator.js
+++ b/
js/kivi.Validator.js
@@
-34,6
+34,8
@@
namespace("kivi.Validator", function(ns) {
for (var test_idx in tests) {
var test = tests[test_idx];
+ if (!ns.checks[test])
+ continue;
if (ns.checks[test]) {
if (!ns.checks[test]($e))