diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2013-08-15 16:10:49 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2013-08-15 16:10:49 +0200 |
commit | 42fc2295e4be7551846e342f9bd3f1909ff435a1 (patch) | |
tree | db0c2b9eb727da36d60a61ae0aadaba1a68a1af2 /apps/user_ldap | |
parent | 479f893f6ddef6a102b8f4ff3f68fc0b64838710 (diff) | |
download | nextcloud-server-42fc2295e4be7551846e342f9bd3f1909ff435a1.tar.gz nextcloud-server-42fc2295e4be7551846e342f9bd3f1909ff435a1.zip |
LDAP: Update Host in configuration chooser on Save
Diffstat (limited to 'apps/user_ldap')
-rw-r--r-- | apps/user_ldap/js/settings.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/user_ldap/js/settings.js b/apps/user_ldap/js/settings.js index 52d5dbc48d9..b86aac6da67 100644 --- a/apps/user_ldap/js/settings.js +++ b/apps/user_ldap/js/settings.js @@ -176,6 +176,13 @@ $(document).ready(function() { $('#ldap_submit').effect('highlight', {'color':'#A8FA87'}, 5000, function() { $('#ldap_submit').css('background', bgcolor); }); + //update the Label in the config chooser + caption = $('#ldap_serverconfig_chooser option:selected:first').text(); + pretext = '. Server: '; + caption = caption.slice(0, caption.indexOf(pretext) + pretext.length); + caption = caption + $('#ldap_host').val(); + $('#ldap_serverconfig_chooser option:selected:first').text(caption); + } else { $('#ldap_submit').css('background', '#fff'); $('#ldap_submit').effect('highlight', {'color':'#E97'}, 5000, function() { |