# HG changeset patch # User hamidouk # Date 1320919228 -3600 # Node ID 6498b89eabcd71217b6dc52aa06ff8edc8ccb64b # Parent 12a72b00f4abb97de0d387bfcb85f12440c9e74b changed the widget to use a template for the segment marker. diff -r 12a72b00f4ab -r 6498b89eabcd src/js/widgets/segmentsWidget.js --- a/src/js/widgets/segmentsWidget.js Wed Nov 09 17:25:23 2011 +0100 +++ b/src/js/widgets/segmentsWidget.js Thu Nov 10 11:00:28 2011 +0100 @@ -18,7 +18,8 @@ var annotations = this._serializer._data.annotations; this.selector.css("overflow", "auto"); // clear the floats - FIXME : to refactor ? - this.selector.append("
"); + this.selector.append(Mustache.to_html(IriSP.segment_marker_template)); + this.positionMarker = this.selector.children(":first"); this._Popcorn.listen("timeupdate", IriSP.wrap(this, this.positionUpdater)); diff -r 12a72b00f4ab -r 6498b89eabcd src/templates/segment_marker.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/templates/segment_marker.html Thu Nov 10 11:00:28 2011 +0100 @@ -0,0 +1,3 @@ +{{! the template for the small white bars which is z-indexed over our segment widget }} +
+
\ No newline at end of file