src/widgets/AnnotationsList.js
branchplayers-as-widgets
changeset 959 ee11ed1b739e
parent 957 4da0a5740b6c
child 963 d58d0dcdb640
equal deleted inserted replaced
958:2aa7fdb0762a 959:ee11ed1b739e
     4     this.lastIds = [];
     4     this.lastIds = [];
     5     var _this = this;
     5     var _this = this;
     6     this.throttledRefresh = IriSP._.throttle(function() {
     6     this.throttledRefresh = IriSP._.throttle(function() {
     7         _this.refresh(false);
     7         _this.refresh(false);
     8     }, 1500);
     8     }, 1500);
     9     this.mashupMode = (this.source.currentMedia.elementType === "mashup");
       
    10 };
     9 };
    11 
    10 
    12 IriSP.Widgets.AnnotationsList.prototype = new IriSP.Widgets.Widget();
    11 IriSP.Widgets.AnnotationsList.prototype = new IriSP.Widgets.Widget();
    13 
    12 
    14 IriSP.Widgets.AnnotationsList.prototype.defaults = {
    13 IriSP.Widgets.AnnotationsList.prototype.defaults = {
   261     return _list.length;
   260     return _list.length;
   262 }
   261 }
   263 
   262 
   264 IriSP.Widgets.AnnotationsList.prototype.draw = function() {
   263 IriSP.Widgets.AnnotationsList.prototype.draw = function() {
   265     
   264     
       
   265     this.mashupMode = (this.media.elementType === "mashup");
       
   266     
   266     this.renderTemplate();
   267     this.renderTemplate();
   267     
   268     
   268     this.list_$ = this.$.find(".Ldt-AnnotationsList-ul");
   269     this.list_$ = this.$.find(".Ldt-AnnotationsList-ul");
   269     
   270     
   270     this.onMdpEvent("search", "onSearch");
   271     this.onMdpEvent("search", "onSearch");