--- a/src/js/widgets/segmentsWidget.js Thu Nov 24 12:39:46 2011 +0100
+++ b/src/js/widgets/segmentsWidget.js Thu Nov 24 12:40:54 2011 +0100
@@ -118,15 +118,7 @@
IriSP.SegmentsWidget.prototype.clickHandler = function(annotation) {
var begin = (+ annotation.begin) / 1000;
- var end = (+ annotation.end) / 1000;
this._Popcorn.currentTime(Math.floor(begin));
-
- var duration = +this._serializer.currentMedia().meta["dc:duration"] / 1000;
- var middle_time = (begin + end) / 2;
- var percents = Math.floor((middle_time / duration) * 100);
-
- console.log(begin, end, duration, middle_time, percents);
- this._Popcorn.trigger("IriSP.SegmentsWidget.segmentClick", percents);
};
IriSP.SegmentsWidget.prototype.searchHandler = function(searchString) {