my ($self) = @_;
return $self->p->html_tag(
- 'a', $self->text,
- %{ $self->params // {} },
+ 'div', $self->text,
id => $self->id,
- class => 'layout-actionbar-link',
+ class => 'layout-actionbar-action layout-actionbar-link',
);
}
width: 20px;
}
+div.layout-actionbar div.layout-actionbar-link,
div.layout-actionbar div.layout-actionbar-submit,
div.layout-actionbar div.layout-actionbar-scriptbutton,
+div.layout-actionbar div.layout-actionbar-link:focus,
div.layout-actionbar div.layout-actionbar-submit:focus,
div.layout-actionbar div.layout-actionbar-scriptbutton:focus {
display: inline-block;
cursor: default;
}
+div.layout-actionbar div.layout-actionbar-link:hover,
div.layout-actionbar div.layout-actionbar-submit:hover,
div.layout-actionbar div.layout-actionbar-scriptbutton:hover {
border: 1px;
border-style: solid;
}
-div.layout-actionbar .layout-actionbar-link {
- margin-left: 6px;
- margin-right: 6px;
- cursor: default;
-}
-
div.layout-actionbar-combobox {
position: relative;
display: inline-block;
background-color: white;
}
+div.layout-actionbar div.layout-actionbar-link,
div.layout-actionbar div.layout-actionbar-submit,
div.layout-actionbar div.layout-actionbar-scriptbutton,
+div.layout-actionbar div.layout-actionbar-link:focus,
div.layout-actionbar div.layout-actionbar-submit:focus,
div.layout-actionbar div.layout-actionbar-scriptbutton:focus {
border-color: darkgray;
background-color: whitesmoke;
}
+div.layout-actionbar div.layout-actionbar-link:hover,
div.layout-actionbar div.layout-actionbar-submit:hover,
div.layout-actionbar div.layout-actionbar-scriptbutton:hover {
color: #FE5F14;
background-color: #d0cfc9;
}
+div.layout-actionbar div.layout-actionbar-link,
div.layout-actionbar div.layout-actionbar-submit,
div.layout-actionbar div.layout-actionbar-scriptbutton,
+div.layout-actionbar div.layout-actionbar-link:focus,
div.layout-actionbar div.layout-actionbar-submit:focus,
div.layout-actionbar div.layout-actionbar-scriptbutton:focus {
border-color: darkgray;
border-radius: 2px;
}
+div.layout-actionbar div.layout-actionbar-link:hover,
div.layout-actionbar div.layout-actionbar-submit:hover,
div.layout-actionbar div.layout-actionbar-scriptbutton:hover {
background-color: lightgray;
$(e).tooltipster({ content: data.tooltip, theme: 'tooltipster-light' });
}
- if (data.call || data.submit) {
+ if (data.call || data.submit || data.link) {
$(e).click(function(event) {
var $hidden, key, func, check;
if ($(e).hasClass(CLASSES.disabled)) {
}
$(form).submit();
}
+ if (data.link) {
+ window.location.href = data.link;
+ }
});
}
};