summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/js/experiencedAdmin.js
diff options
context:
space:
mode:
Diffstat (limited to 'apps/user_ldap/js/experiencedAdmin.js')
-rw-r--r--apps/user_ldap/js/experiencedAdmin.js14
1 files changed, 3 insertions, 11 deletions
diff --git a/apps/user_ldap/js/experiencedAdmin.js b/apps/user_ldap/js/experiencedAdmin.js
index fac8dd6470f..8d138eecc41 100644
--- a/apps/user_ldap/js/experiencedAdmin.js
+++ b/apps/user_ldap/js/experiencedAdmin.js
@@ -50,17 +50,9 @@ ExperiencedAdmin.prototype.isExperienced = function() {
* switches all LDAP filters from Assisted to Raw mode.
*/
ExperiencedAdmin.prototype.enableRawMode = function() {
- var containers = {
- 'toggleRawGroupFilter': '#rawGroupFilterContainer',
- 'toggleRawLoginFilter': '#rawLoginFilterContainer',
- 'toggleRawUserFilter' : '#rawUserFilterContainer'
- };
-
- for(var method in containers) {
- if($(containers[method]).hasClass('invisible')) {
- this.wizard[method]();
- }
- }
+ LdapWizard._save({id: 'ldapGroupFilterMode'}, LdapWizard.filterModeRaw);
+ LdapWizard._save({id: 'ldapUserFilterMode' }, LdapWizard.filterModeRaw);
+ LdapWizard._save({id: 'ldapLoginFilterMode'}, LdapWizard.filterModeRaw);
};
ExperiencedAdmin.prototype.updateUserTab = function(mode) {