From c925bd757b9855d25ee784bce2ac5aa23dc590ae Mon Sep 17 00:00:00 2001 From: Mariela Michalek Date: Sun, 3 Aug 2014 20:34:30 -0300 Subject: [PATCH] hide tooltip when editor is shown --- mindplot/src/main/javascript/LinkIcon.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mindplot/src/main/javascript/LinkIcon.js b/mindplot/src/main/javascript/LinkIcon.js index 2750dd9e..58b6409d 100644 --- a/mindplot/src/main/javascript/LinkIcon.js +++ b/mindplot/src/main/javascript/LinkIcon.js @@ -33,17 +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) { + me._tip.hide(); me._topic.showLinkEditor(); event.stopPropagation(); }); } - this._tip = new mindplot.widget.LinkIconTooltip(this); }, getModel:function () {