summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base/htdocs/luci-static/resources/validation.js
diff options
context:
space:
mode:
Diffstat (limited to 'modules/luci-base/htdocs/luci-static/resources/validation.js')
-rw-r--r--modules/luci-base/htdocs/luci-static/resources/validation.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/validation.js b/modules/luci-base/htdocs/luci-static/resources/validation.js
index 0544e2f680..eea837d64e 100644
--- a/modules/luci-base/htdocs/luci-static/resources/validation.js
+++ b/modules/luci-base/htdocs/luci-static/resources/validation.js
@@ -1,6 +1,7 @@
'use strict';
+'require baseclass';
-var Validator = L.Class.extend({
+var Validator = baseclass.extend({
__name__: 'Validation',
__init__: function(field, type, optional, vfunc, validatorFactory) {
@@ -81,7 +82,7 @@ var Validator = L.Class.extend({
});
-var ValidatorFactory = L.Class.extend({
+var ValidatorFactory = baseclass.extend({
__name__: 'ValidatorFactory',
create: function(field, type, optional, vfunc) {