From ed0c10a10b0b3a9d9d898a64461de707026cd6d3 Mon Sep 17 00:00:00 2001 From: Robin McCorkell Date: Thu, 20 Mar 2014 18:27:40 +0000 Subject: Enable the use of 'optional' on password fields The logic has been changed, in that 'class="optional"' is applied to both password and text types if the field begins with the optional market, '&'. --- apps/files_external/templates/settings.php | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'apps/files_external/templates') diff --git a/apps/files_external/templates/settings.php b/apps/files_external/templates/settings.php index de44d3c8644..8e9355dd8a5 100644 --- a/apps/files_external/templates/settings.php +++ b/apps/files_external/templates/settings.php @@ -44,9 +44,17 @@ $value): ?> - + class="optional" data-parameter="" value="" placeholder="" /> @@ -55,18 +63,13 @@ data-parameter="" checked="checked" /> - - class="optional" data-parameter="" value="" placeholder="" /> -- cgit v1.2.3 From 7a0eccfc63e80ea27188032135560dbb45a1e5cb Mon Sep 17 00:00:00 2001 From: Robin McCorkell Date: Thu, 20 Mar 2014 18:28:42 +0000 Subject: Correct field modifier checking Existing code checks for the existence of a modifier ('&', '!', '#', '*') anywhere in the field name, but strips the first character regardless. This change makes it so that only modifiers at the beginning of the string are counted. --- apps/files_external/templates/settings.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apps/files_external/templates') diff --git a/apps/files_external/templates/settings.php b/apps/files_external/templates/settings.php index 8e9355dd8a5..ecbde442de0 100644 --- a/apps/files_external/templates/settings.php +++ b/apps/files_external/templates/settings.php @@ -52,18 +52,18 @@ $placeholder = substr($placeholder, 1); } ?> - + class="optional" data-parameter="" value="" placeholder="" /> - + - + -- cgit v1.2.3