src/js/widgets/createAnnotationWidget.js
branchpopcorn-port
changeset 797 8407313c144f
parent 779 52be94ec8e1c
child 807 9f6c136ddc03
equal deleted inserted replaced
796:6d8a83ef4949 797:8407313c144f
   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',