src/js/widgets/annotationsListWidget.js
branchpopcorn-port
changeset 745 a996a24e07d6
parent 730 357fc047503b
child 748 ec1f7aa873f4
equal deleted inserted replaced
744:76400fd4ce70 745:a996a24e07d6
   148       if (!this.annotations_ids.hasOwnProperty(obj["id"])) {
   148       if (!this.annotations_ids.hasOwnProperty(obj["id"])) {
   149         // braindead url; jacques didn't want to create a new one in the platform,
   149         // braindead url; jacques didn't want to create a new one in the platform,
   150         // so we append the cutting id to the url.
   150         // so we append the cutting id to the url.
   151         obj["url"] = this.project_url + "/" + media + "/" + 
   151         obj["url"] = this.project_url + "/" + media + "/" + 
   152                      annotation.meta["project"] + "/" +
   152                      annotation.meta["project"] + "/" +
   153                      annotation.meta["id-ref"] + "/";
   153                      annotation.meta["id-ref"];
   154         
   154         
   155         // obj["url"] = document.location.href.split("#")[0] + "/" + annotation.meta["project"];
   155         // obj["url"] = document.location.href.split("#")[0] + "/" + annotation.meta["project"];
   156       }
   156       }
   157       
   157       
   158       l.push(obj);
   158       l.push(obj);