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:
7e435d9
)
js-Validator: Kommentar-Update
author
Bernd Bleßmann
<bernd@kivitendo-premium.de>
Thu, 6 May 2021 11:39:26 +0000
(13:39 +0200)
committer
Bernd Bleßmann
<bernd@kivitendo-premium.de>
Thu, 6 May 2021 11:39:26 +0000
(13:39 +0200)
js/kivi.Validator.js
patch
|
blob
|
history
diff --git
a/js/kivi.Validator.js
b/js/kivi.Validator.js
index
15748cb
..
7cbd7eb
100644
(file)
--- a/
js/kivi.Validator.js
+++ b/
js/kivi.Validator.js
@@
-5,11
+5,14
@@
namespace("kivi.Validator", function(ns) {
// 'selector'. Elements that should be validated must have an
// attribute named "data-validate" which is set to a space-separated
// list of tests to perform. Additionally, the attribute
// 'selector'. Elements that should be validated must have an
// attribute named "data-validate" which is set to a space-separated
// list of tests to perform. Additionally, the attribute
- // "data-title"
must
be set to a human-readable name of the field
- // that can be shown
as par
t of an error message.
+ // "data-title"
can
be set to a human-readable name of the field
+ // that can be shown
in fron
t of an error message.
//
// Supported validation tests are:
// - "required": the field must be set (its .val() must not be empty)
//
// Supported validation tests are:
// - "required": the field must be set (its .val() must not be empty)
+ // - "number": the field must be in number format (its .val() must in the right format)
+ // - "date": the field must be in date format (its .val() must in the right format)
+ // - "time": the field must be in time format (its .val() must in the right format)
//
// The validation will abort and return "false" as soon as
// validation routine fails.
//
// The validation will abort and return "false" as soon as
// validation routine fails.