mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Merge pull request #12345 from grafana/12315_dash_links
Fix dashboard drop down links
This commit is contained in:
commit
2cbec532ee
@ -48,9 +48,11 @@ function dashLink($compile, $sanitize, linkSrv) {
|
|||||||
function update() {
|
function update() {
|
||||||
var linkInfo = linkSrv.getAnchorInfo(link);
|
var linkInfo = linkSrv.getAnchorInfo(link);
|
||||||
span.text(linkInfo.title);
|
span.text(linkInfo.title);
|
||||||
anchor.attr('href', linkInfo.href);
|
if (!link.asDropdown) {
|
||||||
sanitizeAnchor();
|
anchor.attr('href', linkInfo.href);
|
||||||
|
sanitizeAnchor();
|
||||||
|
}
|
||||||
|
elem.find('a').attr('data-placement', 'bottom');
|
||||||
// tooltip
|
// tooltip
|
||||||
elem.find('a').tooltip({
|
elem.find('a').tooltip({
|
||||||
title: $sanitize(scope.link.tooltip),
|
title: $sanitize(scope.link.tooltip),
|
||||||
|
Loading…
Reference in New Issue
Block a user