From 07903bd66ec9a622e93b37f9cdb0a3d1469672fd Mon Sep 17 00:00:00 2001 From: Ezequiel Bergamaschi Date: Mon, 28 Jul 2014 00:20:32 -0300 Subject: [PATCH] link icon tooltip hide on mouse leave --- .../src/main/javascript/widget/LinkIconTooltip.js | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/mindplot/src/main/javascript/widget/LinkIconTooltip.js b/mindplot/src/main/javascript/widget/LinkIconTooltip.js index 3cadface..e4b6925d 100644 --- a/mindplot/src/main/javascript/widget/LinkIconTooltip.js +++ b/mindplot/src/main/javascript/widget/LinkIconTooltip.js @@ -21,14 +21,23 @@ mindplot.widget.LinkIconTooltip = new Class({ initialize:function (linkIcon) { $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:this._buildContent(linkIcon), html:true, placement:'bottom', container: 'body', - title: $msg('LINK') + title: $msg('LINK'), + trigger: "manual", + template: '' }); + var me = this; + nativeElement.mouseenter( + function() { + me.show(); + } + ); }, _buildContent:function (linkIcon) {