equal
deleted
inserted
replaced
20 |
20 |
21 IriSP.TooltipWidget.prototype.show = function(text, color, x, y) { |
21 IriSP.TooltipWidget.prototype.show = function(text, color, x, y) { |
22 if (this.selector.find(".tiptext").text() == text) |
22 if (this.selector.find(".tiptext").text() == text) |
23 return; |
23 return; |
24 |
24 |
|
25 if(text.length > 120) |
|
26 text = text.slice(0,119) + "..."; |
|
27 |
25 this.selector.find(".tipcolor").css("background-color", color); |
28 this.selector.find(".tipcolor").css("background-color", color); |
26 this.selector.find(".tiptext").text(text); |
29 this.selector.find(".tiptext").text(text); |
27 this.selector.find(".tip").css("left", x).css("top", y); |
30 this.selector.find(".tip").css("left", x).css("top", y); |
28 }; |
31 }; |
29 |
32 |