diff -r 566b590aaf8f -r a7efd386872a src/widgets/Polemic.js --- a/src/widgets/Polemic.js Fri Feb 08 16:38:28 2013 +0100 +++ b/src/widgets/Polemic.js Wed Feb 27 18:39:53 2013 +0100 @@ -113,7 +113,7 @@ function displayAnnotation(_elx, _ely, _pol, _col, _annotation) { var _html = Mustache.to_html( - '
', { id: _annotation.id, @@ -134,7 +134,14 @@ _annotation.trigger("unselect"); }).click(function() { _annotation.trigger("click"); - }); + }).on("dragstart", function(e) { + var url = (typeof _annotation.url !== "undefined" + ? _annotation.url + : (document.location.href.replace(/#.*$/,'') + '#id=' + _annotation.id)); + e.originalEvent.dataTransfer.setData("text/x-iri-title",_annotation.title); + e.originalEvent.dataTransfer.setData("text/x-iri-description",_annotation.description); + e.originalEvent.dataTransfer.setData("text/x-iri-uri",url); + }); _annotation.on("select", function() { if (_this.tooltip) { _this.tooltip.show(