From: Jo-Philipp Wich Date: Thu, 28 Oct 2021 13:08:35 +0000 (+0200) Subject: luci-base: add legacy directory, file and device validator JS stubs X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=5a092b3ad23256f99ba08510fd11f6db28ca8f05;p=project%2Fluci.git luci-base: add legacy directory, file and device validator JS stubs Fixes: #5466 Signed-off-by: Jo-Philipp Wich (cherry picked from commit ad360ec00a3667d530fa1a911ac19515b132d588) --- 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; } } });