aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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')); ?>"