Use primary class also for ui-button elements
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
5603d9a5ea
commit
57eb046836
|
@ -209,14 +209,6 @@ 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;
|
||||
|
|
|
@ -214,7 +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.managedItems.ldap_dn.$saveButton.removeClass('primary');
|
||||
view.onConfigLoaded(view, configuration);
|
||||
},
|
||||
|
||||
|
|
|
@ -359,10 +359,10 @@ OCA = OCA || {};
|
|||
item.$saveButton.click(function(event) {
|
||||
event.preventDefault();
|
||||
view._requestSave(item.$element);
|
||||
item.$saveButton.removeClass('ldap_primary');
|
||||
item.$saveButton.removeClass('primary');
|
||||
});
|
||||
item.$element.change(function () {
|
||||
item.$saveButton.addClass('ldap_primary');
|
||||
item.$saveButton.addClass('primary');
|
||||
});
|
||||
})(this.managedItems[id]);
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
type="button">
|
||||
<?php p($l->t('Back'));?>
|
||||
</button>
|
||||
<button class="ldap_action_continue ldap_primary" name="ldap_action_continue" type="button">
|
||||
<button class="ldap_action_continue primary" name="ldap_action_continue" type="button">
|
||||
<?php p($l->t('Continue'));?>
|
||||
</button>
|
||||
<a href="<?php p(link_to_docs('admin-ldap')); ?>"
|
||||
|
|
|
@ -193,3 +193,9 @@
|
|||
color: $color-primary-element;
|
||||
}
|
||||
}
|
||||
|
||||
.ui-button.primary {
|
||||
background-color: $color-primary;
|
||||
color: $color-primary-text;
|
||||
border: 1px solid $color-primary-text;
|
||||
}
|
Loading…
Reference in New Issue