From 8a8a32cf43efad6fdb2089097cb7fadbe0472456 Mon Sep 17 00:00:00 2001 From: ben-denham Date: Fri, 14 Mar 2014 09:17:39 +1300 Subject: [PATCH] Changed conditions in user_ldap's ldapFilter.js to use ===, fixed indentation. --- apps/user_ldap/js/ldapFilter.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/user_ldap/js/ldapFilter.js b/apps/user_ldap/js/ldapFilter.js index 71f8cd6c7c..70f24f0d4a 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(); } );