src/js/widgets/createAnnotationWidget.js
branchpopcorn-port
changeset 807 9f6c136ddc03
parent 799 5293a2c52fc6
parent 797 8407313c144f
child 814 9abad8fe5207
equal deleted inserted replaced
806:4ae02249c3ac 807:9f6c136ddc03
   407   }
   407   }
   408   
   408   
   409   var jsonString = JSON.stringify(apiJson);
   409   var jsonString = JSON.stringify(apiJson);
   410   var project_id = this._serializer._data.meta.id;
   410   var project_id = this._serializer._data.meta.id;
   411   
   411   
   412   var url = Mustache.to_html("{{platf_url}}/ldtplatform/api/ldt/projects/{{id}}.json",
   412   //TODO: extract magic url
       
   413   var url = Mustache.to_html("{{platf_url}}/ldtplatform/api/ldt/annotations/{{id}}.json",
   413                               {platf_url: IriSP.platform_url, id: project_id});
   414                               {platf_url: IriSP.platform_url, id: project_id});
   414                           
   415                           
   415   IriSP.jQuery.ajax({
   416   IriSP.jQuery.ajax({
   416       url: url,
   417       url: url,
   417       type: 'PUT',
   418       type: 'PUT',