diff -r b35c32744ae9 -r 59a78986f19e src/js/LdtPlayer.js --- a/src/js/LdtPlayer.js Tue Sep 13 12:29:30 2011 +0200 +++ b/src/js/LdtPlayer.js Tue Sep 13 12:58:02 2011 +0200 @@ -960,11 +960,13 @@ //alert (this.duration); var startPourcent = this.timeToPourcent(this.begin,this.duration); // temps du media var endPourcent = this.timeToPourcent(this.end,this.duration)-startPourcent; - var titleForDiv = this.title.substr(0,55); + var divTitle = this.title.substr(0,55); + + IriSP.jQueryAnnotationTemplate = Mustache.to_html(IriSP.annotation_template, + {"divTitle" : divTitle, "id" : this.id, "startPourcent" : startPourcent, + "endPourcent" : endPourcent, "hexa_color" : IriSP.DEC_HEXA_COLOR(this.color), + "seekPlace" : Math.round(this.begin/1000)}); - IriSP.jQueryAnnotationTemplate = "
"; - //alert(this.color+" : "+DEC_HEXA_COLOR(this.color)); - IriSP.jQuerytoolTipTemplate = Mustache.to_html(IriSP.tooltip_template, {"title" : this.title, "begin" : this.begin, "end" : this.end, "description": this.description});