luci-base: add legacy directory, file and device validator JS stubs
Fixes: #5466 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
0ad54e4a7c
commit
ad360ec00a
1 changed files with 12 additions and 0 deletions
|
@ -575,6 +575,18 @@ var ValidatorFactory = baseclass.extend({
|
||||||
|
|
||||||
string: function() {
|
string: function() {
|
||||||
return true;
|
return true;
|
||||||
|
},
|
||||||
|
|
||||||
|
directory: function() {
|
||||||
|
return true;
|
||||||
|
},
|
||||||
|
|
||||||
|
file: function() {
|
||||||
|
return true;
|
||||||
|
},
|
||||||
|
|
||||||
|
device: function() {
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue