Changed conditions in user_ldap's ldapFilter.js to use ===, fixed indentation.

This commit is contained in:
ben-denham 2014-03-14 09:17:39 +13:00
parent ef65381a0b
commit 8a8a32cf43

View file

@ -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();
}
);