diff options
author | Vincent Petry <pvince81@owncloud.com> | 2015-10-16 13:23:11 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2015-10-16 13:25:16 +0200 |
commit | c406efe74fc3f03e1a6771be90a8acdce84b9324 (patch) | |
tree | 4edfc813f02f9d176f1baa2cf20b204239a5fb97 /apps/user_ldap/js/wizard | |
parent | 7224e99ccd47a0c9320ef9fd7a297b67cbbfd67c (diff) | |
download | nextcloud-server-c406efe74fc3f03e1a6771be90a8acdce84b9324.tar.gz nextcloud-server-c406efe74fc3f03e1a6771be90a8acdce84b9324.zip |
[IE9] Prevent LDAP password field to become plain text
The placeholders library converts the password field to a text field to
achieve placeholders functionality. However this is buggy and doesn't
properly mask the password when it was set through $el.val().
This workaround sets the type back to password directly after setting a
value.
Diffstat (limited to 'apps/user_ldap/js/wizard')
-rw-r--r-- | apps/user_ldap/js/wizard/wizardTabElementary.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/user_ldap/js/wizard/wizardTabElementary.js b/apps/user_ldap/js/wizard/wizardTabElementary.js index 7c1a550c097..f5232e91010 100644 --- a/apps/user_ldap/js/wizard/wizardTabElementary.js +++ b/apps/user_ldap/js/wizard/wizardTabElementary.js @@ -137,6 +137,10 @@ OCA = OCA || {}; this.setElementValue( this.managedItems.ldap_agent_password.$element, agentPwd ); + if (agentPwd && $('html').hasClass('lte9')) { + // make it a password field again (IE fix, placeholders bug) + this.managedItems.ldap_agent_password.$element.attr('type', 'password'); + } }, /** * updates the base DN text area |