From f3c76673593b92fde295eee361db5d5596c40b7e Mon Sep 17 00:00:00 2001 From: Ezequiel Bergamaschi Date: Sun, 17 Aug 2014 17:56:08 -0300 Subject: [PATCH] fix link icon tooltip bug --- mindplot/src/main/javascript/LinkIcon.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mindplot/src/main/javascript/LinkIcon.js b/mindplot/src/main/javascript/LinkIcon.js index 6f820744..1c0eabe2 100644 --- a/mindplot/src/main/javascript/LinkIcon.js +++ b/mindplot/src/main/javascript/LinkIcon.js @@ -33,16 +33,18 @@ mindplot.LinkIcon = new Class({ _registerEvents:function () { this._image.setCursor('pointer'); + this._tip = new mindplot.widget.LinkIconTooltip(this); + var me = this; if (!this._readOnly) { // Add on click event to open the editor ... this.addEvent('click', function (event) { + this._tip.hide(); this._topic.showLinkEditor(); event.stopPropagation(); }.bind(this)); } - this._tip = new mindplot.widget.LinkIconTooltip(this); }, getModel:function () {