diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2013-11-04 16:48:40 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2013-11-04 16:48:40 +0100 |
commit | 17820fbef6e2eda38b43cdb35a0c9c7b6fa59bb3 (patch) | |
tree | 142965457730faf096e9794acbb89ed48fd3f296 | |
parent | c3898061a8e8026ea608d5c79f597adf4cacc96c (diff) | |
download | nextcloud-server-17820fbef6e2eda38b43cdb35a0c9c7b6fa59bb3.tar.gz nextcloud-server-17820fbef6e2eda38b43cdb35a0c9c7b6fa59bb3.zip |
LDAP: make buttons on Expert page work again, fixes #5585
-rw-r--r-- | apps/user_ldap/js/settings.js | 22 | ||||
-rw-r--r-- | apps/user_ldap/templates/part.settingcontrols.php | 4 |
2 files changed, 13 insertions, 13 deletions
diff --git a/apps/user_ldap/js/settings.js b/apps/user_ldap/js/settings.js index 4c2f182dad8..5f670353f69 100644 --- a/apps/user_ldap/js/settings.js +++ b/apps/user_ldap/js/settings.js @@ -652,8 +652,8 @@ var LdapWizard = { $(document).ready(function() { $('#ldapAdvancedAccordion').accordion({ heightStyle: 'content', animate: 'easeInOutCirc'}); $('#ldapSettings').tabs({ beforeActivate: LdapWizard.onTabChange }); - $('#ldap_submit').button(); - $('#ldap_action_test_connection').button(); + $('.ldap_submit').button(); + $('.ldap_action_test_connection').button(); $('#ldap_action_delete_configuration').button(); LdapWizard.initMultiSelect($('#ldap_userfilter_groups'), 'ldap_userfilter_groups', @@ -682,7 +682,7 @@ $(document).ready(function() { event.preventDefault(); LdapWizard.controlBack(); }); - $('#ldap_action_test_connection').click(function(event){ + $('.ldap_action_test_connection').click(function(event){ event.preventDefault(); $.post( OC.filePath('user_ldap','ajax','testConfiguration.php'), @@ -716,18 +716,18 @@ $(document).ready(function() { ); }); - $('#ldap_submit').click(function(event) { + $('.ldap_submit').click(function(event) { event.preventDefault(); $.post( OC.filePath('user_ldap','ajax','setConfiguration.php'), $('#ldap').serialize(), function (result) { - bgcolor = $('#ldap_submit').css('background'); + bgcolor = $('.ldap_submit').css('background'); if (result.status === 'success') { //the dealing with colors is a but ugly, but the jQuery version in use has issues with rgba colors - $('#ldap_submit').css('background', '#fff'); - $('#ldap_submit').effect('highlight', {'color':'#A8FA87'}, 5000, function() { - $('#ldap_submit').css('background', bgcolor); + $('.ldap_submit').css('background', '#fff'); + $('.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(); @@ -737,9 +737,9 @@ $(document).ready(function() { $('#ldap_serverconfig_chooser option:selected:first').text(caption); } else { - $('#ldap_submit').css('background', '#fff'); - $('#ldap_submit').effect('highlight', {'color':'#E97'}, 5000, function() { - $('#ldap_submit').css('background', bgcolor); + $('.ldap_submit').css('background', '#fff'); + $('.ldap_submit').effect('highlight', {'color':'#E97'}, 5000, function() { + $('.ldap_submit').css('background', bgcolor); }); } } diff --git a/apps/user_ldap/templates/part.settingcontrols.php b/apps/user_ldap/templates/part.settingcontrols.php index 017f21c8b1c..3ec234d70f8 100644 --- a/apps/user_ldap/templates/part.settingcontrols.php +++ b/apps/user_ldap/templates/part.settingcontrols.php @@ -1,6 +1,6 @@ <div class="ldapSettingControls"> - <input id="ldap_submit" type="submit" value="Save" /> - <button id="ldap_action_test_connection" name="ldap_action_test_connection"> + <input class="ldap_submit" value="Save"> + <button class="ldap_action_test_connection" name="ldap_action_test_connection"> <?php p($l->t('Test Configuration'));?> </button> <a href="<?php p($theme->getDocBaseUrl()); ?>/server/5.0/admin_manual/auth_ldap.html" |