Changed conditions in user_ldap's ldapFilter.js to use ===, fixed indentation.
This commit is contained in:
parent
ef65381a0b
commit
8a8a32cf43
1 changed files with 3 additions and 3 deletions
|
@ -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();
|
||||
}
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in a new issue