mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Unified buttons
Buttons in association dialog and action list have different style and behavior than buttons in dialogs. This patch unifies it by using jquery.button widget. https://fedorahosted.org/freeipa/ticket/2817
This commit is contained in:
parent
1c79e283b1
commit
17a6b3f29d
@ -1238,6 +1238,10 @@ table.scrollable tbody {
|
|||||||
width: 98%;
|
width: 98%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.adder-dialog-buttons > div:first-child{
|
||||||
|
margin-bottom: 0.5em;
|
||||||
|
}
|
||||||
|
|
||||||
/* ---- Widgets ---- */
|
/* ---- Widgets ---- */
|
||||||
|
|
||||||
.text-widget input {
|
.text-widget input {
|
||||||
@ -1655,11 +1659,6 @@ form#login {
|
|||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* TODO: replace with button */
|
|
||||||
#content .facet-action-list div[name=apply] a.ui-state-default {
|
|
||||||
padding: 3px 5px 1px 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.facet-action-list select {
|
.facet-action-list select {
|
||||||
font-size: 11px;
|
font-size: 11px;
|
||||||
padding-left: 4px;
|
padding-left: 4px;
|
||||||
|
@ -2455,12 +2455,6 @@ IPA.link_widget = function(spec) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
IPA.action_button = function(spec) {
|
IPA.action_button = function(spec) {
|
||||||
var button = IPA.button(spec);
|
|
||||||
button.removeClass("ui-state-default").addClass("action-button");
|
|
||||||
return button;
|
|
||||||
};
|
|
||||||
|
|
||||||
IPA.button = function(spec) {
|
|
||||||
|
|
||||||
spec = spec || {};
|
spec = spec || {};
|
||||||
|
|
||||||
@ -2469,7 +2463,7 @@ IPA.button = function(spec) {
|
|||||||
name: spec.name,
|
name: spec.name,
|
||||||
href: spec.href || '#' + (spec.name || 'button'),
|
href: spec.href || '#' + (spec.name || 'button'),
|
||||||
title: spec.title || spec.label,
|
title: spec.title || spec.label,
|
||||||
'class': 'ui-state-default ui-corner-all button',
|
'class': 'button action-button',
|
||||||
style: spec.style,
|
style: spec.style,
|
||||||
click: spec.click,
|
click: spec.click,
|
||||||
blur: spec.blur
|
blur: spec.blur
|
||||||
@ -2493,6 +2487,29 @@ IPA.button = function(spec) {
|
|||||||
return button;
|
return button;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
IPA.button = function(spec) {
|
||||||
|
|
||||||
|
spec = spec || {};
|
||||||
|
|
||||||
|
var button = $('<a/>', {
|
||||||
|
id: spec.id,
|
||||||
|
name: spec.name,
|
||||||
|
href: spec.href || '#' + (spec.name || 'button')
|
||||||
|
});
|
||||||
|
|
||||||
|
var icons = { primary: spec.icon };
|
||||||
|
var label = spec.label;
|
||||||
|
|
||||||
|
button.button({
|
||||||
|
icons: icons,
|
||||||
|
label: label
|
||||||
|
});
|
||||||
|
|
||||||
|
button.click(spec.click);
|
||||||
|
|
||||||
|
return button;
|
||||||
|
};
|
||||||
|
|
||||||
IPA.button_widget = function(spec) {
|
IPA.button_widget = function(spec) {
|
||||||
|
|
||||||
spec = spec || {};
|
spec = spec || {};
|
||||||
|
Loading…
Reference in New Issue
Block a user