mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-09-12 07:10:07 +02:00
link icon tooltip hide on mouse leave
This commit is contained in:
parent
2084bb429e
commit
07903bd66e
@ -21,14 +21,23 @@ mindplot.widget.LinkIconTooltip = new Class({
|
|||||||
|
|
||||||
initialize:function (linkIcon) {
|
initialize:function (linkIcon) {
|
||||||
$assert(linkIcon, "linkIcon can not be null");
|
$assert(linkIcon, "linkIcon can not be null");
|
||||||
this.parent($(linkIcon.getImage()._peer._native), {
|
var nativeElement = $(linkIcon.getImage()._peer._native);
|
||||||
|
this.parent(nativeElement, {
|
||||||
// Content can also be a function of the target element!
|
// Content can also be a function of the target element!
|
||||||
content:this._buildContent(linkIcon),
|
content:this._buildContent(linkIcon),
|
||||||
html:true,
|
html:true,
|
||||||
placement:'bottom',
|
placement:'bottom',
|
||||||
container: 'body',
|
container: 'body',
|
||||||
title: $msg('LINK')
|
title: $msg('LINK'),
|
||||||
|
trigger: "manual",
|
||||||
|
template: '<div class="popover" onmouseover="$(this).mouseleave(function() {$(this).hide(); });" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'
|
||||||
});
|
});
|
||||||
|
var me = this;
|
||||||
|
nativeElement.mouseenter(
|
||||||
|
function() {
|
||||||
|
me.show();
|
||||||
|
}
|
||||||
|
);
|
||||||
},
|
},
|
||||||
|
|
||||||
_buildContent:function (linkIcon) {
|
_buildContent:function (linkIcon) {
|
||||||
|
Loading…
Reference in New Issue
Block a user