summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-04-18 01:27:19 +0200
committerMorris Jobke <hey@morrisjobke.de>2015-04-18 01:27:19 +0200
commit4dd2ad7f4abc66f40c93f8f974737138ba187f46 (patch)
tree656832d94b24da9280fd370d2c2a8e830f332414
parent7ab1f807fb00da68d62fad78410e741bf7774e5a (diff)
parentfe237fd15988fde2bccac924bfee9233dd87f3d9 (diff)
downloadnextcloud-server-4dd2ad7f4abc66f40c93f8f974737138ba187f46.tar.gz
nextcloud-server-4dd2ad7f4abc66f40c93f8f974737138ba187f46.zip
Merge pull request #15714 from owncloud/fix-ldap-xpmode
always open filter tab in raw mode, when 'Manually enter LDAP filters' i...
-rw-r--r--apps/user_ldap/js/wizard/wizardTabAbstractFilter.js1
-rw-r--r--apps/user_ldap/js/wizard/wizardTabGeneric.js8
-rw-r--r--apps/user_ldap/js/wizard/wizardTabLoginFilter.js1
3 files changed, 8 insertions, 2 deletions
diff --git a/apps/user_ldap/js/wizard/wizardTabAbstractFilter.js b/apps/user_ldap/js/wizard/wizardTabAbstractFilter.js
index 024b6af65d0..702c30a5a69 100644
--- a/apps/user_ldap/js/wizard/wizardTabAbstractFilter.js
+++ b/apps/user_ldap/js/wizard/wizardTabAbstractFilter.js
@@ -237,6 +237,7 @@ OCA = OCA || {};
* @inheritdoc
*/
onActivate: function() {
+ this._super();
this.considerFeatureRequests();
},
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
diff --git a/apps/user_ldap/js/wizard/wizardTabLoginFilter.js b/apps/user_ldap/js/wizard/wizardTabLoginFilter.js
index 9438fd73346..b73d267d168 100644
--- a/apps/user_ldap/js/wizard/wizardTabLoginFilter.js
+++ b/apps/user_ldap/js/wizard/wizardTabLoginFilter.js
@@ -184,6 +184,7 @@ OCA = OCA || {};
* @inheritdoc
*/
onActivate: function() {
+ this._super();
this.considerFeatureRequests();
if(!this.managedItems.ldap_login_filter.$element.val()) {
this.configModel.requestWizard('ldap_login_filter');