luci-base: add legacy directory, file and device validator JS stubs

Fixes: #5466
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit ad360ec00a)
This commit is contained in:
Jo-Philipp Wich 2021-10-28 15:08:35 +02:00
parent d1255a5f5e
commit 5a092b3ad2

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