luci-base: add legacy directory, file and device validator JS stubs
authorJo-Philipp Wich <jo@mein.io>
Thu, 28 Oct 2021 13:08:35 +0000 (15:08 +0200)
committerJo-Philipp Wich <jo@mein.io>
Thu, 28 Oct 2021 13:08:35 +0000 (15:08 +0200)
Fixes: #5466
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/htdocs/luci-static/resources/validation.js

index 70d3a7e73a10415c6bc4d42322234288d6776931..fccce4ab0bf10f4706cdf7f1000fa43aec836760 100644 (file)
@@ -575,6 +575,18 @@ var ValidatorFactory = baseclass.extend({
 
                string: function() {
                        return true;
+               },
+
+               directory: function() {
+                       return true;
+               },
+
+               file: function() {
+                       return true;
+               },
+
+               device: function() {
+                       return true;
                }
        }
 });