From 181fe637de5280ef2567c936669c409a3f0c0c2c Mon Sep 17 00:00:00 2001 From: Halali Date: Sun, 27 Jan 2019 01:00:00 +0100 Subject: [PATCH] Add some basic rules for subfolder custom path --- views/settings.tpl | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/views/settings.tpl b/views/settings.tpl index d122d78e9..48c7488b0 100644 --- a/views/settings.tpl +++ b/views/settings.tpl @@ -1100,8 +1100,7 @@ @@ -2162,6 +2161,7 @@ // form validation $('#settings_form') .form({ + on: 'blur', fields: { settings_general_ip : { rules : [ @@ -2193,6 +2193,16 @@ ] }, % end + settings_subfolder_custom : { + rules : [ + { + type: 'doesntContain[\\]', + }, + { + type: 'doesntContain[/]', + } + ] + }, settings_auth_password : { depends: 'settings_auth_username', rules : [