diff -r 73ade123e5c1 -r 418a12ee972f web/lib/metadataplayer/Tooltip.js --- a/web/lib/metadataplayer/Tooltip.js Wed Nov 06 19:21:12 2013 +0100 +++ b/web/lib/metadataplayer/Tooltip.js Thu Nov 07 13:35:41 2013 +0100 @@ -41,7 +41,21 @@ IriSP.Widgets.Tooltip.prototype.show = function(x, y, text, color) { if (typeof color !== "undefined") { - this.$.find(".Ldt-Tooltip-Color").show().css("background-color", color); + // one color or array of colors + if (typeof color === "string") { + this.$.find(".Ldt-Tooltip-Color").html(""); + this.$.find(".Ldt-Tooltip-Color").show().css("background-color", color); + this.$.find(".Ldt-Tooltip-Color").show().css("height", ""); + } + else{ + var d = this.$.find(".Ldt-Tooltip-Color"); + d.html(""); + d.show(); + for(var i=0; i') + } + this.$.find(".Ldt-Tooltip-Color").css("height", (color.length * 10) + "px"); + } } else { this.$.find(".Ldt-Tooltip-Color").hide(); }