Add some basic rules for subfolder custom path

pull/489/head
Halali 6 years ago
parent 64079a3c22
commit 181fe637de

@ -1100,8 +1100,7 @@
<div class="collapsed center aligned column"> <div class="collapsed center aligned column">
<div class="ui basic icon" <div class="ui basic icon"
data-tooltip='overrides "Subtitle Folder"; computes to real paths' data-tooltip='overrides "Subtitle Folder"' data-inverted="">
data-inverted="">
<i class="help circle large icon"></i> <i class="help circle large icon"></i>
</div> </div>
</div> </div>
@ -2162,6 +2161,7 @@
// form validation // form validation
$('#settings_form') $('#settings_form')
.form({ .form({
on: 'blur',
fields: { fields: {
settings_general_ip : { settings_general_ip : {
rules : [ rules : [
@ -2193,6 +2193,16 @@
] ]
}, },
% end % end
settings_subfolder_custom : {
rules : [
{
type: 'doesntContain[\\]',
},
{
type: 'doesntContain[/]',
}
]
},
settings_auth_password : { settings_auth_password : {
depends: 'settings_auth_username', depends: 'settings_auth_username',
rules : [ rules : [

Loading…
Cancel
Save