# HG changeset patch # User hamidouk # Date 1324054407 -3600 # Node ID 6d9cd6f47d9516e164acb089a749c28579338d9b # Parent d72aa39512187b3a9299f1edadea87e5b94900e0 fixed outstanding bugs. diff -r d72aa3951218 -r 6d9cd6f47d95 web/LdtPlayer-release.js --- a/web/LdtPlayer-release.js Fri Dec 16 17:52:30 2011 +0100 +++ b/web/LdtPlayer-release.js Fri Dec 16 17:53:27 2011 +0100 @@ -8670,11 +8670,11 @@ }; -IriSP.annotation_template = "{{! template for an annotation displayed in a segmentWidget }}
"; +IriSP.annotation_template = "{{! template for an annotation displayed in a segmentWidget }}
"; IriSP.annotationWidget_template = "{{! template for the annotation widget }}
share on facebook share on twitter share on google+
"; IriSP.annotation_loading_template = "{{! template shown while the annotation widget is loading }}
 
Chargement...
"; IriSP.arrowWidget_template = "
"; -IriSP.overlay_marker_template = "{{! the template for the small white bars which is z-indexed over our segment widget }}
"; +IriSP.overlay_marker_template = "{{! the template for the small white bars which is z-indexed over our segment widget }}
"; IriSP.player_template = "{{! template for the radio player }}
/
"; IriSP.search_template = "{{! template for the search container }}
"; IriSP.share_template = "{{! social network sharing template }}       "; @@ -10491,7 +10491,7 @@ endPourcent -= onePxPercent; } - var divTitle = annotation.content.title.substr(0,55); + var divTitle = (annotation.content.title + " - " + annotation.content.description).substr(0,55); if (typeof(annotation.content.color) !== "undefined") var color = annotation.content.color; @@ -10499,7 +10499,7 @@ var color = annotation.color; var hexa_color = IriSP.DEC_HEXA_COLOR(color); - console.log(hexa_color); + if (hexa_color === "FFCC00") hexa_color = "333"; @@ -10530,7 +10530,7 @@ var offset_x = offset.left + correction - 106; if (offset_x < 0) offset_x = 0; - + self.TooltipWidget.show(divTitle, color, offset_x, event.pageY - 160); } })(divTitle)).mouseout(function(){ IriSP.jQuery(this).animate({opacity: 0.3}, 5); @@ -10545,7 +10545,7 @@ /* restores the view after a search */ IriSP.SegmentsWidget.prototype.clear = function() { - //this.selector.children(".Ldt-iri-chapter").css('border','none').animate({opacity:0.3}, 100); + this.selector.children(".Ldt-iri-chapter").css('border','none').animate({opacity:0.3}, 100); }; IriSP.SegmentsWidget.prototype.clickHandler = function(annotation) { @@ -10757,6 +10757,7 @@ /* this widget displays a small tooltip */ IriSP.TooltipWidget = function(Popcorn, config, Serializer) { IriSP.Widget.call(this, Popcorn, config, Serializer); + this._shown = false; }; @@ -10775,17 +10776,21 @@ }; IriSP.TooltipWidget.prototype.show = function(text, color, x, y) { - if (this.selector.find(".tiptext").text() == text) + if (this._shown === true || this.selector.find(".tiptext").text() == text) return; this.selector.find(".tipcolor").css("background-color", color); this.selector.find(".tiptext").text(text); this.selector.find(".tip").css("left", x).css("top", y); + + this._shown = true; }; IriSP.TooltipWidget.prototype.hide = function() { this.clear(); this.selector.find(".tip").css("left", -10000).css("top", -100000); + + this._shown = false; }; /* a widget that displays tweet - used in conjunction with the polemicWidget */