diff options
author | Jo-Philipp Wich <jo@mein.io> | 2019-05-28 18:49:11 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2019-07-07 15:36:25 +0200 |
commit | 6edc057451ebade744aa62cca64aa685eb6021ce (patch) | |
tree | b94dae07a338bb26e5e39427cbd482c0a6113f22 /modules/luci-base/htdocs/luci-static/resources/ui.js | |
parent | 8a6b89c671f864cb3033287211e4438b16ea5eb7 (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.js | 3 |
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++) |