diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2015-04-17 23:33:59 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2015-04-17 23:33:59 +0200 |
commit | fe237fd15988fde2bccac924bfee9233dd87f3d9 (patch) | |
tree | 656832d94b24da9280fd370d2c2a8e830f332414 /apps/user_ldap/js/wizard/wizardTabGeneric.js | |
parent | 7ab1f807fb00da68d62fad78410e741bf7774e5a (diff) | |
download | nextcloud-server-fe237fd15988fde2bccac924bfee9233dd87f3d9.tar.gz nextcloud-server-fe237fd15988fde2bccac924bfee9233dd87f3d9.zip |
always open filter tab in raw mode, when 'Manually enter LDAP filters' is checked
Diffstat (limited to 'apps/user_ldap/js/wizard/wizardTabGeneric.js')
-rw-r--r-- | apps/user_ldap/js/wizard/wizardTabGeneric.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/user_ldap/js/wizard/wizardTabGeneric.js b/apps/user_ldap/js/wizard/wizardTabGeneric.js index 524d2a048a1..720628fa609 100644 --- a/apps/user_ldap/js/wizard/wizardTabGeneric.js +++ b/apps/user_ldap/js/wizard/wizardTabGeneric.js @@ -75,9 +75,13 @@ OCA = OCA || {}; /** * this is called by the main view, if the tab is being switched to. - * The concrete tab view can implement this if necessary. */ - onActivate: function() { }, + onActivate: function() { + if(!_.isUndefined(this.filterModeKey) + && this.configModel.configuration.ldap_experienced_admin === '1') { + this.setFilterMode(this.configModel.FILTER_MODE_RAW); + } + }, /** * updates the tab when the model loaded a configuration and notified |