git.99rst.org
/
openwrt-luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
0ad54e4
)
luci-base: add legacy directory, file and device validator JS stubs
author
Jo-Philipp Wich
<redacted>
Thu, 28 Oct 2021 13:08:35 +0000
(15:08 +0200)
committer
Jo-Philipp Wich
<redacted>
Thu, 28 Oct 2021 13:08:35 +0000
(15:08 +0200)
Fixes: #5466
Signed-off-by: Jo-Philipp Wich <redacted>
modules/luci-base/htdocs/luci-static/resources/validation.js
patch
|
blob
|
history
diff --git
a/modules/luci-base/htdocs/luci-static/resources/validation.js
b/modules/luci-base/htdocs/luci-static/resources/validation.js
index 70d3a7e73a10415c6bc4d42322234288d6776931..fccce4ab0bf10f4706cdf7f1000fa43aec836760 100644
(file)
--- 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;
}
}
});
git clone https://git.99rst.org/PROJECT