From ad360ec00a3667d530fa1a911ac19515b132d588 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 28 Oct 2021 15:08:35 +0200 Subject: [PATCH] luci-base: add legacy directory, file and device validator JS stubs Fixes: #5466 Signed-off-by: Jo-Philipp Wich --- .../htdocs/luci-static/resources/validation.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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; } } }); -- 2.30.2