src/js/widgets/segmentsWidget.js
branchpopcorn-port
changeset 418 06d2aa32c5f4
parent 398 d1883378b822
parent 392 ef4e6b0fec17
child 464 dd543fb9d38a
equal deleted inserted replaced
416:f3237cce149e 418:06d2aa32c5f4
   121   this.selector.children(".Ldt-iri-chapter").css('border','none').animate({opacity:0.3}, 100);
   121   this.selector.children(".Ldt-iri-chapter").css('border','none').animate({opacity:0.3}, 100);
   122 };
   122 };
   123 
   123 
   124 IriSP.SegmentsWidget.prototype.clickHandler = function(annotation) {
   124 IriSP.SegmentsWidget.prototype.clickHandler = function(annotation) {
   125   var begin = (+ annotation.begin) / 1000;
   125   var begin = (+ annotation.begin) / 1000;
   126   this._Popcorn.currentTime(Math.floor(begin));
   126   this._Popcorn.currentTime(Math.round(begin));
   127 };
   127 };
   128 
   128 
   129 IriSP.SegmentsWidget.prototype.searchHandler = function(searchString) {
   129 IriSP.SegmentsWidget.prototype.searchHandler = function(searchString) {
   130 
   130 
   131   if (searchString == "")
   131   if (searchString == "")