From 5603d9a5ea39d5945b555d186753c752418b616b Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Mon, 17 Jul 2017 12:16:09 +0200 Subject: [PATCH] hackishly add primary css class adaption for jquery ui Signed-off-by: Arthur Schiwon --- apps/user_ldap/css/settings.css | 8 ++++++++ apps/user_ldap/js/wizard/wizardTabElementary.js | 1 + apps/user_ldap/js/wizard/wizardTabGeneric.js | 4 ++++ apps/user_ldap/templates/part.wizardcontrols.php | 2 +- 4 files changed, 14 insertions(+), 1 deletion(-) diff --git a/apps/user_ldap/css/settings.css b/apps/user_ldap/css/settings.css index 54d0e2dbb0..4288bdc2c2 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 7ce1009565..ea40b7682a 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 57ac375e32..375ec45066 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 89eb96827e..8ef6e88840 100644 --- a/apps/user_ldap/templates/part.wizardcontrols.php +++ b/apps/user_ldap/templates/part.wizardcontrols.php @@ -5,7 +5,7 @@ type="button"> t('Back'));?> -