equal
deleted
inserted
replaced
17 this.hide(); |
17 this.hide(); |
18 |
18 |
19 }; |
19 }; |
20 |
20 |
21 IriSP.TooltipWidget.prototype.clear = function() { |
21 IriSP.TooltipWidget.prototype.clear = function() { |
22 this.selector.find(".tiptext").text(""); |
22 this.selector.find(".tiptext").html(""); |
23 }; |
23 }; |
24 |
24 |
25 IriSP.TooltipWidget.prototype.show = function(text, color, x, y) { |
25 IriSP.TooltipWidget.prototype.show = function(text, color, x, y) { |
26 |
26 |
27 if (this._displayedText == text && this._shown) |
27 if (this._displayedText == text && this._shown) |
28 return; |
28 return; |
29 |
29 |
30 this.selector.find(".tipcolor").css("background-color", color); |
30 this.selector.find(".tipcolor").css("background-color", color); |
31 this._displayedText = text; |
31 this._displayedText = text; |
32 this.selector.find(".tiptext").text(text); |
32 this.selector.find(".tiptext").html(text); |
33 |
33 |
34 if (x < 0) |
34 if (x < 0) |
35 x = 0; |
35 x = 0; |
36 if (y < 0) |
36 if (y < 0) |
37 y = 0; |
37 y = 0; |