summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base/htdocs/luci-static/resources/ui.js
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2019-05-28 18:49:11 +0200
committerJo-Philipp Wich <jo@mein.io>2019-07-07 15:36:25 +0200
commit6edc057451ebade744aa62cca64aa685eb6021ce (patch)
treeb94dae07a338bb26e5e39427cbd482c0a6113f22 /modules/luci-base/htdocs/luci-static/resources/ui.js
parent8a6b89c671f864cb3033287211e4438b16ea5eb7 (diff)
luci-base: split off CBI validations into separate class
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-base/htdocs/luci-static/resources/ui.js')
-rw-r--r--modules/luci-base/htdocs/luci-static/resources/ui.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/ui.js b/modules/luci-base/htdocs/luci-static/resources/ui.js
index f530016936..3370d225cd 100644
--- a/modules/luci-base/htdocs/luci-static/resources/ui.js
+++ b/modules/luci-base/htdocs/luci-static/resources/ui.js
@@ -1,5 +1,6 @@
'use strict';
'require uci';
+'require validation';
var modalDiv = null,
tooltipDiv = null,
@@ -2026,7 +2027,7 @@ return L.Class.extend({
events.push('blur', 'keyup');
try {
- var cbiValidator = new CBIValidator(field, type, optional, vfunc),
+ var cbiValidator = L.validation.create(field, type, optional, vfunc),
validatorFn = cbiValidator.validate.bind(cbiValidator);
for (var i = 0; i < events.length; i++)