equal
deleted
inserted
replaced
12 this.selector.append(templ); |
12 this.selector.append(templ); |
13 this.hide(); |
13 this.hide(); |
14 |
14 |
15 }; |
15 }; |
16 |
16 |
|
17 IriSP.TooltipWidget.prototype.clear = function() { |
|
18 this.selector.find(".tiptext").text(""); |
|
19 }; |
|
20 |
17 IriSP.TooltipWidget.prototype.show = function(text, color, x, y) { |
21 IriSP.TooltipWidget.prototype.show = function(text, color, x, y) { |
18 if (this.selector.find(".tiptext").text() == text) |
22 if (this.selector.find(".tiptext").text() == text) |
19 return; |
23 return; |
20 |
24 |
21 this.selector.find(".tipcolor").css("background-color", color); |
25 this.selector.find(".tipcolor").css("background-color", color); |
22 this.selector.find(".tiptext").text(text); |
26 this.selector.find(".tiptext").text(text); |
23 this.selector.find(".tip").css("left", x).css("top", y); |
27 this.selector.find(".tip").css("left", x).css("top", y); |
24 }; |
28 }; |
25 |
29 |
26 IriSP.TooltipWidget.prototype.hide = function() { |
30 IriSP.TooltipWidget.prototype.hide = function() { |
|
31 this.clear(); |
27 this.selector.find(".tip").css("left", -10000).css("top", -100000); |
32 this.selector.find(".tip").css("left", -10000).css("top", -100000); |
28 }; |
33 }; |