summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/js/wizard
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2017-07-17 12:16:09 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2017-11-13 16:33:17 +0100
commit5603d9a5ea39d5945b555d186753c752418b616b (patch)
treedb39e6cbe54e50a7d61adda47a33e3f7520a341c /apps/user_ldap/js/wizard
parente23921c7b1db72595dfb89c344c6e2c7081012b0 (diff)
downloadnextcloud-server-5603d9a5ea39d5945b555d186753c752418b616b.tar.gz
nextcloud-server-5603d9a5ea39d5945b555d186753c752418b616b.zip
hackishly add primary css class adaption for jquery ui
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/user_ldap/js/wizard')
-rw-r--r--apps/user_ldap/js/wizard/wizardTabElementary.js1
-rw-r--r--apps/user_ldap/js/wizard/wizardTabGeneric.js4
2 files changed, 5 insertions, 0 deletions
diff --git a/apps/user_ldap/js/wizard/wizardTabElementary.js b/apps/user_ldap/js/wizard/wizardTabElementary.js
index 7ce1009565d..ea40b7682af 100644
--- a/apps/user_ldap/js/wizard/wizardTabElementary.js
+++ b/apps/user_ldap/js/wizard/wizardTabElementary.js
@@ -214,6 +214,7 @@ OCA = OCA || {};
onConfigSwitch: function(view, configuration) {
this.baseDNTestTriggered = false;
view.disableElement(view.managedItems.ldap_port.$relatedElements);
+ view.managedItems.ldap_dn.$saveButton.removeClass('ldap_primary');
view.onConfigLoaded(view, configuration);
},
diff --git a/apps/user_ldap/js/wizard/wizardTabGeneric.js b/apps/user_ldap/js/wizard/wizardTabGeneric.js
index 57ac375e321..375ec45066f 100644
--- a/apps/user_ldap/js/wizard/wizardTabGeneric.js
+++ b/apps/user_ldap/js/wizard/wizardTabGeneric.js
@@ -359,6 +359,10 @@ OCA = OCA || {};
item.$saveButton.click(function(event) {
event.preventDefault();
view._requestSave(item.$element);
+ item.$saveButton.removeClass('ldap_primary');
+ });
+ item.$element.change(function () {
+ item.$saveButton.addClass('ldap_primary');
});
})(this.managedItems[id]);
}