hackishly add primary css class adaption for jquery ui
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
parent
e23921c7b1
commit
5603d9a5ea
|
@ -209,6 +209,14 @@ select[multiple=multiple] + button {
|
||||||
color: #777;
|
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 {
|
#ldapSettings {
|
||||||
background-color: white;
|
background-color: white;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
|
|
@ -214,6 +214,7 @@ OCA = OCA || {};
|
||||||
onConfigSwitch: function(view, configuration) {
|
onConfigSwitch: function(view, configuration) {
|
||||||
this.baseDNTestTriggered = false;
|
this.baseDNTestTriggered = false;
|
||||||
view.disableElement(view.managedItems.ldap_port.$relatedElements);
|
view.disableElement(view.managedItems.ldap_port.$relatedElements);
|
||||||
|
view.managedItems.ldap_dn.$saveButton.removeClass('ldap_primary');
|
||||||
view.onConfigLoaded(view, configuration);
|
view.onConfigLoaded(view, configuration);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -359,6 +359,10 @@ OCA = OCA || {};
|
||||||
item.$saveButton.click(function(event) {
|
item.$saveButton.click(function(event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
view._requestSave(item.$element);
|
view._requestSave(item.$element);
|
||||||
|
item.$saveButton.removeClass('ldap_primary');
|
||||||
|
});
|
||||||
|
item.$element.change(function () {
|
||||||
|
item.$saveButton.addClass('ldap_primary');
|
||||||
});
|
});
|
||||||
})(this.managedItems[id]);
|
})(this.managedItems[id]);
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
type="button">
|
type="button">
|
||||||
<?php p($l->t('Back'));?>
|
<?php p($l->t('Back'));?>
|
||||||
</button>
|
</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'));?>
|
<?php p($l->t('Continue'));?>
|
||||||
</button>
|
</button>
|
||||||
<a href="<?php p(link_to_docs('admin-ldap')); ?>"
|
<a href="<?php p(link_to_docs('admin-ldap')); ?>"
|
||||||
|
|
Loading…
Reference in New Issue