diff -r 7e18d953a1f8 -r 392ddcd212d7 src/widgets/Segments.js --- a/src/widgets/Segments.js Mon Sep 30 14:39:34 2013 +0200 +++ b/src/widgets/Segments.js Tue Oct 01 15:41:46 2013 +0200 @@ -23,7 +23,7 @@ IriSP.Widgets.Segments.prototype.annotationTemplate = '
' + + 'style="top:{{top}}px; height:{{height}}px; left:{{left}}px; width:{{width}}px; background:{{medcolor}}" data-base-color="{{color}}" data-low-color="{{lowcolor}}" data-medium-color="{{medcolor}}">'; IriSP.Widgets.Segments.prototype.draw = function() { @@ -58,7 +58,7 @@ _fulltext = _annotation.title + ( _annotation.description ? ( '
' + _annotation.description ) : '' ), line = IriSP._(lines).find(function(line) { return !IriSP._(line.annotations).find(function(a) { - return a.begin < _annotation.end && a.end > _annotation.begin + return a.begin < _annotation.end && a.end > _annotation.begin; }); }); if (!line) { @@ -165,11 +165,11 @@ _segment.css("background", _segment.attr("data-medium-color")).removeClass("found"); }); }); -} +}; IriSP.Widgets.Segments.prototype.onTimeupdate = function(_time) { var _x = Math.floor( this.width * _time / this.media.duration); this.$.find('.Ldt-Segments-Position').css({ left: _x + "px" - }) -} \ No newline at end of file + }); +}; \ No newline at end of file