src/js/widgets/annotationsListWidget.js
branchpopcorn-port
changeset 729 7ba63d0315ad
parent 716 16d61d539cbf
child 730 357fc047503b
equal deleted inserted replaced
724:94d5d81d3161 729:7ba63d0315ad
   177     
   177     
   178   if (!this.ajax_mode) {    
   178   if (!this.ajax_mode) {    
   179     this._Popcorn.listen("IriSP.createAnnotationWidget.addedAnnotation", IriSP.wrap(this, function() { this.drawList(true); }));
   179     this._Popcorn.listen("IriSP.createAnnotationWidget.addedAnnotation", IriSP.wrap(this, function() { this.drawList(true); }));
   180     this._Popcorn.listen("timeupdate", IriSP.wrap(this, this.redraw));
   180     this._Popcorn.listen("timeupdate", IriSP.wrap(this, this.redraw));
   181   } else {
   181   } else {
       
   182     /* update the widget when the video has finished loading and when it's seeked and paused */
   182     this._Popcorn.listen("seeked", IriSP.wrap(this, this.ajaxRedraw));
   183     this._Popcorn.listen("seeked", IriSP.wrap(this, this.ajaxRedraw));
       
   184     this._Popcorn.listen("loadedmetadata", IriSP.wrap(this, this.ajaxRedraw));
   183     this._Popcorn.listen("paused", IriSP.wrap(this, this.ajaxRedraw));
   185     this._Popcorn.listen("paused", IriSP.wrap(this, this.ajaxRedraw));
   184   }
   186   }
   185 
   187 
   186 };
   188 };
   187 
   189