src/js/widgets/segmentsWidget.js
branchpopcorn-port
changeset 464 dd543fb9d38a
parent 418 06d2aa32c5f4
child 473 1a09ab7e7163
equal deleted inserted replaced
463:7ef123b2410f 464:dd543fb9d38a
   120 IriSP.SegmentsWidget.prototype.clear = function() {
   120 IriSP.SegmentsWidget.prototype.clear = function() {
   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   this._Popcorn.trigger("IriSP.SegmentsWidget.click", annotation.id);
   125   var begin = (+ annotation.begin) / 1000;
   126   var begin = (+ annotation.begin) / 1000;
   126   this._Popcorn.currentTime(Math.round(begin));
   127   this._Popcorn.currentTime(Math.round(begin));
   127 };
   128 };
   128 
   129 
   129 IriSP.SegmentsWidget.prototype.searchHandler = function(searchString) {
   130 IriSP.SegmentsWidget.prototype.searchHandler = function(searchString) {