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>
Tue, 15 Feb 2022 23:36:34 +0000 (00:36 +0100)
Fixes: #5466
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit ad360ec00a3667d530fa1a911ac19515b132d588)

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;
                }
        }
 });