# HG changeset patch # User hamidouk # Date 1324977962 -3600 # Node ID 5249bb0cd9647ad5e18cab6fa67e4dbb38bf8a97 # Parent e7f27746668e635695e49889b69cfc436625f7df cosmetical change - moved css code from jquery.css to the stylesheet. diff -r e7f27746668e -r 5249bb0cd964 src/css/LdtPlayer.css --- a/src/css/LdtPlayer.css Tue Dec 27 10:25:34 2011 +0100 +++ b/src/css/LdtPlayer.css Tue Dec 27 10:26:02 2011 +0100 @@ -503,6 +503,7 @@ /* sparkline widget */ .Ldt-sparklineWidget { position: relative; + margin-bottom: 5px; } .Ldt-sparkLinePositionMarker { diff -r e7f27746668e -r 5249bb0cd964 src/js/widgets/sparklineWidget.js --- a/src/js/widgets/sparklineWidget.js Tue Dec 27 10:25:34 2011 +0100 +++ b/src/js/widgets/sparklineWidget.js Tue Dec 27 10:26:02 2011 +0100 @@ -58,8 +58,7 @@ spotColor: "#b70056", width: this.width, height: this.height}); this._Popcorn.listen("timeupdate", IriSP.wrap(this, this.timeUpdateHandler)); - IriSP.jQuery(".Ldt-sparkLineClickOverlay").click(IriSP.wrap(this, this.clickHandler)); - this.spacer.css("height", "2px"); + IriSP.jQuery(".Ldt-sparkLineClickOverlay").click(IriSP.wrap(this, this.clickHandler)); }; /** react to a timeupdate event */ @@ -88,5 +87,7 @@ var duration = this._serializer.currentMedia().meta["dc:duration"] / 1000; var newTime = ((relX / width) * duration).toFixed(2); + + this._Popcorn.trigger("IriSP.SparklineWidget.clicked", newTime); this._Popcorn.currentTime(newTime); }; \ No newline at end of file