diff -r b3ee7d1b472a -r 64c2eaafe5e2 src/widgets/Segments.js --- a/src/widgets/Segments.js Fri Jun 29 16:22:52 2012 +0200 +++ b/src/widgets/Segments.js Thu Jul 05 19:08:13 2012 +0200 @@ -9,11 +9,6 @@ IriSP.Widgets.Segments.prototype.defaults = { annotation_type : "chap", colors: ["#1f77b4","#aec7e8","#ff7f0e","#ffbb78","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5","#8c564b","#c49c94","#e377c2","#f7b6d2","#7f7f7f","#c7c7c7","#bcbd22","#dbdb8d","#17becf","#9edae5"], - requires : [ - { - type: "Tooltip" - } - ], height: 10 }; @@ -22,7 +17,8 @@ + '
' + '{{/segments}}' - + ''; + + '' + + ''; IriSP.Widgets.Segments.prototype.draw = function() { this.bindPopcorn("IriSP.search", "onSearch"); @@ -55,6 +51,7 @@ } }) })); + this.insertSubwidget(this.$.find(".Ldt-Segments-Tooltip"), "tooltip", { type: "Tooltip" }); this.$segments = this.$.find('.Ldt-Segments-Segment'); this.$segments.mouseover(function() {