src/js/widgets/createAnnotationWidget.js
branchpopcorn-port
changeset 834 573c7ca752e0
parent 833 33a5d5882be4
child 836 526f91f5253e
equal deleted inserted replaced
833:33a5d5882be4 834:573c7ca752e0
   243   
   243   
   244   if (this.cinecast_version) {
   244   if (this.cinecast_version) {
   245     this.selector.find(".Ldt-createAnnotation-Title").parent().show();      
   245     this.selector.find(".Ldt-createAnnotation-Title").parent().show();      
   246   }
   246   }
   247 
   247 
   248   var url = document.location.href + "#id=" + annotation.id;
   248   var url = typeof annotation.url == "string" ? annotation.url : document.location.href + "#id=" + annotation.id;
   249   var twStatus = IriSP.mkTweetUrl(url);
   249   var twStatus = IriSP.mkTweetUrl(url);
   250   var gpStatus = IriSP.mkGplusUrl(url);
   250   var gpStatus = IriSP.mkGplusUrl(url);
   251   var fbStatus = IriSP.mkFbUrl(url);
   251   var fbStatus = IriSP.mkFbUrl(url);
   252   
   252   
   253   this.selector.find(".Ldt-createAnnotation-endScreen-TweetLink").attr("href", twStatus);
   253   this.selector.find(".Ldt-createAnnotation-endScreen-TweetLink").attr("href", twStatus);