summaryrefslogtreecommitdiffstats
path: root/settings/js
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2018-01-06 00:13:23 +0100
committerMorris Jobke <hey@morrisjobke.de>2018-01-11 14:08:47 +0100
commitb83204bf2cac18ed2fa1f07770a172932392abcc (patch)
tree779444a42ebb5cf1ad2deedf238d9c0974c4472d /settings/js
parentc8c4ce2da5e5df61649588e0405aabbfa14dc9d7 (diff)
downloadnextcloud-server-b83204bf2cac18ed2fa1f07770a172932392abcc.tar.gz
nextcloud-server-b83204bf2cac18ed2fa1f07770a172932392abcc.zip
Add strengthify bar after plain text input clone of password input
To show the password in plain text "showPassword" adds a text input after the password input and swaps their visibility depending on whether the password has to be shown in plain text or not. In a similar way, "strengthify" by default adds the strength bar after the input element it was called on. Due to this, if "showPassword" is called before "strengthify" on the same password input then the strength bar ends between the password input and the text input, and when the text input is shown it appears below the strength bar. To fix this now the strength bar is added after the text input in those places in which "strengthify" was called after "showPassword" on the same element. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'settings/js')
-rw-r--r--settings/js/settings/personalInfo.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/settings/js/settings/personalInfo.js b/settings/js/settings/personalInfo.js
index 0a39e607762..99254c42090 100644
--- a/settings/js/settings/personalInfo.js
+++ b/settings/js/settings/personalInfo.js
@@ -395,6 +395,7 @@ $(document).ready(function () {
t('settings', 'Strong password')
],
drawTitles: true,
+ $addAfter: $('input[name="newpassword-clone"]'),
});
// Load the big avatar