src/widgets/Annotation.js
changeset 994 d18d6b9e1078
parent 993 a7efd386872a
child 996 c472984db275
equal deleted inserted replaced
993:a7efd386872a 994:d18d6b9e1078
   172                 ? currentAnnotation.url
   172                 ? currentAnnotation.url
   173                 : (document.location.href.replace(/#.*$/,'') + '#id='  + currentAnnotation.id));
   173                 : (document.location.href.replace(/#.*$/,'') + '#id='  + currentAnnotation.id));
   174     	e.originalEvent.dataTransfer.setData("text/x-iri-title",currentAnnotation.title);
   174     	e.originalEvent.dataTransfer.setData("text/x-iri-title",currentAnnotation.title);
   175     	e.originalEvent.dataTransfer.setData("text/x-iri-description",currentAnnotation.description);
   175     	e.originalEvent.dataTransfer.setData("text/x-iri-description",currentAnnotation.description);
   176     	e.originalEvent.dataTransfer.setData("text/x-iri-uri",url);
   176     	e.originalEvent.dataTransfer.setData("text/x-iri-uri",url);
       
   177     	if (typeof currentAnnotation.thumbnail !== "undefined" && currentAnnotation.thumbnail) {
       
   178     		e.originalEvent.dataTransfer.setData("text/x-iri-image",currentAnnotation.thumbnail);
       
   179     	}
   177     });
   180     });
   178 }
   181 }
   179 
   182 
   180 IriSP.Widgets.Annotation.prototype.sendBounds = function() {
   183 IriSP.Widgets.Annotation.prototype.sendBounds = function() {
   181     this.player.trigger("Annotation.boundsChanged",this.bounds);
   184     this.player.trigger("Annotation.boundsChanged",this.bounds);