web/res/metadataplayer/Segments.js
changeset 955 5171f8825985
parent 828 6030bef81a51
child 1198 ff4b567d51f2
--- a/web/res/metadataplayer/Segments.js	Thu Sep 26 14:46:53 2013 +0200
+++ b/web/res/metadataplayer/Segments.js	Tue Oct 01 16:33:47 2013 +0200
@@ -23,7 +23,7 @@
 
 IriSP.Widgets.Segments.prototype.annotationTemplate =
     '<div class="Ldt-Segments-Segment Ldt-TraceMe" trace-info="segment-id:{{id}}, media-id:{{media_id}}, from:{{from}}, to:{{to}}" segment-text="{{text}}"'
-    + '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}}"></div>'
+    + '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}}"></div>';
 
 
 IriSP.Widgets.Segments.prototype.draw = function() {
@@ -58,7 +58,7 @@
             _fulltext = _annotation.title + ( _annotation.description ? ( '<br/>' + _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