mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 17:23:59 -04:00
LDAP: Update Host in configuration chooser on Save
This commit is contained in:
parent
479f893f6d
commit
42fc2295e4
1 changed files with 7 additions and 0 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue