fix link icon tooltip bug

This commit is contained in:
Ezequiel Bergamaschi 2014-08-17 17:56:08 -03:00
parent 75739389cc
commit f6464b6e37

View File

@ -33,16 +33,18 @@ mindplot.LinkIcon = new Class({
_registerEvents:function () { _registerEvents:function () {
this._image.setCursor('pointer'); this._image.setCursor('pointer');
this._tip = new mindplot.widget.LinkIconTooltip(this);
var me = this;
if (!this._readOnly) { if (!this._readOnly) {
// Add on click event to open the editor ... // Add on click event to open the editor ...
this.addEvent('click', function (event) { this.addEvent('click', function (event) {
this._tip.hide();
this._topic.showLinkEditor(); this._topic.showLinkEditor();
event.stopPropagation(); event.stopPropagation();
}.bind(this)); }.bind(this));
} }
this._tip = new mindplot.widget.LinkIconTooltip(this);
}, },
getModel:function () { getModel:function () {