From cda088059077643caf3167ad88cf389ab9945eda Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Thu, 6 May 2021 13:39:26 +0200 Subject: [PATCH] js-Validator: Kommentar-Update --- js/kivi.Validator.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/js/kivi.Validator.js b/js/kivi.Validator.js index 15748cbc5..7cbd7eb6c 100644 --- 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 - // "data-title" must be set to a human-readable name of the field - // that can be shown as part of an error message. + // "data-title" can be set to a human-readable name of the field + // that can be shown in front of an error message. // // 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. -- 2.20.1