summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base/htdocs/luci-static/resources
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2021-10-28 15:08:35 +0200
committerJo-Philipp Wich <jo@mein.io>2021-10-28 15:08:35 +0200
commitad360ec00a3667d530fa1a911ac19515b132d588 (patch)
treebf20afe3cd21f149402ff3b19d4058a416f6a151 /modules/luci-base/htdocs/luci-static/resources
parent0ad54e4a7ca8f9b526442954b12a6b04e5c7403c (diff)
luci-base: add legacy directory, file and device validator JS stubs
Fixes: #5466 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-base/htdocs/luci-static/resources')
-rw-r--r--modules/luci-base/htdocs/luci-static/resources/validation.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/validation.js b/modules/luci-base/htdocs/luci-static/resources/validation.js
index 70d3a7e73a..fccce4ab0b 100644
--- a/modules/luci-base/htdocs/luci-static/resources/validation.js
+++ b/modules/luci-base/htdocs/luci-static/resources/validation.js
@@ -575,6 +575,18 @@ var ValidatorFactory = baseclass.extend({
string: function() {
return true;
+ },
+
+ directory: function() {
+ return true;
+ },
+
+ file: function() {
+ return true;
+ },
+
+ device: function() {
+ return true;
}
}
});