diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2014-04-11 13:56:06 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2014-04-11 13:56:06 +0200 |
commit | e28227ecdc0f898868701fe131326d8c15ef60d7 (patch) | |
tree | 02acefc9054776960bbf1f1b74f8b0a5d598b45c /apps/user_ldap/js | |
parent | 6f1e9f89201d26e679152be93090c8eb8482ff2a (diff) | |
download | nextcloud-server-e28227ecdc0f898868701fe131326d8c15ef60d7.tar.gz nextcloud-server-e28227ecdc0f898868701fe131326d8c15ef60d7.zip |
fix comparison in determineMode, fixes problems with restoring the filter mode (assisted or manually) on page refresh
Diffstat (limited to 'apps/user_ldap/js')
-rw-r--r-- | apps/user_ldap/js/ldapFilter.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/user_ldap/js/ldapFilter.js b/apps/user_ldap/js/ldapFilter.js index 70f24f0d4a5..d0fee6db7fc 100644 --- a/apps/user_ldap/js/ldapFilter.js +++ b/apps/user_ldap/js/ldapFilter.js @@ -64,13 +64,16 @@ LdapFilter.prototype.determineMode = function() { LdapWizard.ajax(param, function(result) { property = 'ldap' + filter.target + 'FilterMode'; - filter.mode = result.changes[property]; + filter.mode = parseInt(result.changes[property]); if(filter.mode === LdapWizard.filterModeRaw && $('#raw'+filter.target+'FilterContainer').hasClass('invisible')) { LdapWizard['toggleRaw'+filter.target+'Filter'](); } else if(filter.mode === LdapWizard.filterModeAssisted && !$('#raw'+filter.target+'FilterContainer').hasClass('invisible')) { LdapWizard['toggleRaw'+filter.target+'Filter'](); + } else { + console.log('LDAP Wizard determineMode: returned mode was »' + + filter.mode + '« of type ' + typeof filter.mode); } filter.unlock(); }, |