src/js/widgets/segmentsWidget.js
branchpopcorn-port
changeset 593 a4c63f13f021
parent 552 3e8be3e6bdfb
child 637 d6f477188c0a
equal deleted inserted replaced
592:35459f92bb66 593:a4c63f13f021
    44   var annotations = this._serializer._data.annotations;
    44   var annotations = this._serializer._data.annotations;
    45 
    45 
    46   this.selector.addClass("Ldt-SegmentsWidget");
    46   this.selector.addClass("Ldt-SegmentsWidget");
    47   this.selector.append(Mustache.to_html(IriSP.overlay_marker_template));
    47   this.selector.append(Mustache.to_html(IriSP.overlay_marker_template));
    48           
    48           
    49   var view_type = this._serializer.getNonTweetIds()[0];    
    49   var view_type = this._serializer.getChapitrage();
       
    50   if (typeof(view_type) === "undefined")
       
    51     view_type = this._serializer.getNonTweetIds()[0];    
    50   
    52   
    51   this.positionMarker = this.selector.children(":first");
    53   this.positionMarker = this.selector.children(":first");
    52   
    54   
    53   this._Popcorn.listen("timeupdate", IriSP.wrap(this, this.positionUpdater));
    55   this._Popcorn.listen("timeupdate", IriSP.wrap(this, this.positionUpdater));
    54   
    56