Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
62df406d
Commit
62df406d
authored
Dec 31, 2017
by
Alexander Zobnin
Committed by
Torkel Ödegaard
Dec 31, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix info popover, #10302 (#10377)
parent
e84b6d18
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
10 deletions
+15
-10
public/app/core/components/info_popover.ts
+15
-10
No files found.
public/app/core/components/info_popover.ts
View file @
62df406d
...
@@ -10,10 +10,10 @@ export function infoPopover() {
...
@@ -10,10 +10,10 @@ export function infoPopover() {
template
:
'<i class="fa fa-info-circle"></i>'
,
template
:
'<i class="fa fa-info-circle"></i>'
,
transclude
:
true
,
transclude
:
true
,
link
:
function
(
scope
,
elem
,
attrs
,
ctrl
,
transclude
)
{
link
:
function
(
scope
,
elem
,
attrs
,
ctrl
,
transclude
)
{
var
offset
=
attrs
.
offset
||
'0 -10px'
;
let
offset
=
attrs
.
offset
||
'0 -10px'
;
var
position
=
attrs
.
position
||
'right middle'
;
let
position
=
attrs
.
position
||
'right middle'
;
var
classes
=
'drop-help drop-hide-out-of-bounds'
;
let
classes
=
'drop-help drop-hide-out-of-bounds'
;
var
openOn
=
'hover'
;
let
openOn
=
'hover'
;
elem
.
addClass
(
'gf-form-help-icon'
);
elem
.
addClass
(
'gf-form-help-icon'
);
...
@@ -26,14 +26,14 @@ export function infoPopover() {
...
@@ -26,14 +26,14 @@ export function infoPopover() {
}
}
transclude
(
function
(
clone
,
newScope
)
{
transclude
(
function
(
clone
,
newScope
)
{
var
content
=
document
.
createElement
(
'div'
);
let
content
=
document
.
createElement
(
'div'
);
content
.
className
=
'markdown-html'
;
content
.
className
=
'markdown-html'
;
_
.
each
(
clone
,
node
=>
{
_
.
each
(
clone
,
node
=>
{
content
.
appendChild
(
node
);
content
.
appendChild
(
node
);
});
});
var
drop
=
new
Drop
(
{
let
dropOptions
=
{
target
:
elem
[
0
],
target
:
elem
[
0
],
content
:
content
,
content
:
content
,
position
:
position
,
position
:
position
,
...
@@ -50,11 +50,16 @@ export function infoPopover() {
...
@@ -50,11 +50,16 @@ export function infoPopover() {
},
},
],
],
},
},
});
};
// Create drop in next digest after directive content is rendered.
scope
.
$applyAsync
(()
=>
{
let
drop
=
new
Drop
(
dropOptions
);
var
unbind
=
scope
.
$on
(
'$destroy'
,
function
()
{
let
unbind
=
scope
.
$on
(
'$destroy'
,
function
()
{
drop
.
destroy
();
drop
.
destroy
();
unbind
();
unbind
();
});
});
});
});
});
},
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment