summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap
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
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')
-rw-r--r--apps/user_ldap/css/settings.css8
-rw-r--r--apps/user_ldap/js/wizard/wizardTabElementary.js1
-rw-r--r--apps/user_ldap/js/wizard/wizardTabGeneric.js4
-rw-r--r--apps/user_ldap/templates/part.wizardcontrols.php2
4 files changed, 14 insertions, 1 deletions
diff --git a/apps/user_ldap/css/settings.css b/apps/user_ldap/css/settings.css
index 54d0e2dbb0c..4288bdc2c24 100644
--- a/apps/user_ldap/css/settings.css
+++ b/apps/user_ldap/css/settings.css
@@ -209,6 +209,14 @@ select[multiple=multiple] + button {
color: #777;
}
+.ldap_primary {
+ border: 1px solid #0082c9 !important;
+ background-color: rgba(0, 130, 201, .7) !important;
+ background-image: none !important;
+ color: #fff !important;
+ cursor: pointer;
+}
+
#ldapSettings {
background-color: white;
padding: 0;
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]);
}
diff --git a/apps/user_ldap/templates/part.wizardcontrols.php b/apps/user_ldap/templates/part.wizardcontrols.php
index 89eb96827e6..8ef6e888407 100644
--- a/apps/user_ldap/templates/part.wizardcontrols.php
+++ b/apps/user_ldap/templates/part.wizardcontrols.php
@@ -5,7 +5,7 @@
type="button">
<?php p($l->t('Back'));?>
</button>
- <button class="ldap_action_continue" name="ldap_action_continue" type="button">
+ <button class="ldap_action_continue ldap_primary" name="ldap_action_continue" type="button">
<?php p($l->t('Continue'));?>
</button>
<a href="<?php p(link_to_docs('admin-ldap')); ?>"