src/js/widgets/annotationsListWidget.js
branchpopcorn-port
changeset 753 72eecd7250e5
parent 752 ebc72cbc35f4
child 784 2ce658b19b96
equal deleted inserted replaced
752:ebc72cbc35f4 753:72eecd7250e5
   118     
   118     
   119   var end_timecode = (Math.floor(tcode) + 300) * 1000;
   119   var end_timecode = (Math.floor(tcode) + 300) * 1000;
   120   if (end_timecode > duration)
   120   if (end_timecode > duration)
   121     end_timecode = duration;
   121     end_timecode = duration;
   122   
   122   
   123   console.log("b, e:", begin_timecode, end_timecode);
       
   124   var templ = Mustache.to_html(platf_url, {media: media_id, begin: begin_timecode,
   123   var templ = Mustache.to_html(platf_url, {media: media_id, begin: begin_timecode,
   125                                  end: end_timecode});
   124                                  end: end_timecode});
   126 
   125 
   127   /* we create on the fly a serializer to get the ajax */
   126   /* we create on the fly a serializer to get the ajax */
   128   var serializer = new IriSP.JSONSerializer(IriSP.__dataloader, templ);
   127   var serializer = new IriSP.JSONSerializer(IriSP.__dataloader, templ);