summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/js
diff options
context:
space:
mode:
authorben-denham <bend@catalyst.net.nz>2014-03-14 09:17:39 +1300
committerben-denham <bend@catalyst.net.nz>2014-03-14 09:17:39 +1300
commit8a8a32cf43efad6fdb2089097cb7fadbe0472456 (patch)
tree925acb4d774a2be7c4814a7335707a3eb3cd1cac /apps/user_ldap/js
parentef65381a0b41a1d6519e7d5bf39d3aac75127a1e (diff)
downloadnextcloud-server-8a8a32cf43efad6fdb2089097cb7fadbe0472456.tar.gz
nextcloud-server-8a8a32cf43efad6fdb2089097cb7fadbe0472456.zip
Changed conditions in user_ldap's ldapFilter.js to use ===, fixed indentation.
Diffstat (limited to 'apps/user_ldap/js')
-rw-r--r--apps/user_ldap/js/ldapFilter.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/user_ldap/js/ldapFilter.js b/apps/user_ldap/js/ldapFilter.js
index 71f8cd6c7c4..70f24f0d4a5 100644
--- a/apps/user_ldap/js/ldapFilter.js
+++ b/apps/user_ldap/js/ldapFilter.js
@@ -65,10 +65,10 @@ LdapFilter.prototype.determineMode = function() {
function(result) {
property = 'ldap' + filter.target + 'FilterMode';
filter.mode = result.changes[property];
- if(filter.mode == LdapWizard.filterModeRaw
+ if(filter.mode === LdapWizard.filterModeRaw
&& $('#raw'+filter.target+'FilterContainer').hasClass('invisible')) {
LdapWizard['toggleRaw'+filter.target+'Filter']();
- } else if(filter.mode == LdapWizard.filterModeAssisted
+ } else if(filter.mode === LdapWizard.filterModeAssisted
&& !$('#raw'+filter.target+'FilterContainer').hasClass('invisible')) {
LdapWizard['toggleRaw'+filter.target+'Filter']();
}
@@ -80,7 +80,7 @@ LdapFilter.prototype.determineMode = function() {
LdapWizard['toggleRaw'+filter.target+'Filter']();
filter.mode = LdapWizard.filterModeAssisted;
}
- filter.unlock();
+ filter.unlock();
}
);