src/js/widgets/annotationsWidget.js
branchpopcorn-port
changeset 595 29d86e6c61a6
parent 541 f7667a1dde8e
child 651 c43441822b1b
equal deleted inserted replaced
594:96af41097260 595:29d86e6c61a6
    53   var annotationMarkup = IriSP.templToHTML(IriSP.annotationWidget_template);
    53   var annotationMarkup = IriSP.templToHTML(IriSP.annotationWidget_template);
    54 	this.selector.append(annotationMarkup);
    54 	this.selector.append(annotationMarkup);
    55 
    55 
    56   this._Popcorn.listen("IriSP.PlayerWidget.AnnotateButton.clicked", 
    56   this._Popcorn.listen("IriSP.PlayerWidget.AnnotateButton.clicked", 
    57                         IriSP.wrap(this, this.handleAnnotateSignal));  
    57                         IriSP.wrap(this, this.handleAnnotateSignal));  
    58   var legal_ids = this._serializer.getNonTweetIds();
    58   var legal_ids = [];
       
    59   if (typeof(this._serializer.getChapitrage()) !== "undefined")
       
    60     legal_ids.push(this._serializer.getChapitrage());
       
    61   else 
       
    62     legal_ids = this._serializer.getNonTweetIds();
    59   
    63   
    60   var annotations = this._serializer._data.annotations;
    64   var annotations = this._serializer._data.annotations;
    61   var i;
    65   var i;
    62   
    66   
    63 	for (i in annotations) {    
    67 	for (i in annotations) {