src/widgets/AnnotationsList.js
changeset 996 c472984db275
parent 994 d18d6b9e1078
child 1005 768bd0691ed1
equal deleted inserted replaced
995:37a4566bb7ee 996:c472984db275
   228                 })
   228                 })
   229                 .mouseout(function() {
   229                 .mouseout(function() {
   230                     _annotation.trigger("unselect");
   230                     _annotation.trigger("unselect");
   231                 })
   231                 })
   232                 .appendTo(_this.list_$);
   232                 .appendTo(_this.list_$);
   233             _el.find("[draggable]").on("dragstart", function(e) {
   233             IriSP.attachDndData(_el.find("[draggable]"), {
   234 	        	e.originalEvent.dataTransfer.setData("text/x-iri-title",_title);
   234             	title: _title,
   235 	        	e.originalEvent.dataTransfer.setData("text/x-iri-description",_description);
   235             	description: _description,
   236 	        	e.originalEvent.dataTransfer.setData("text/x-iri-uri",_url);
   236             	uri: _url,
   237 	        	if (typeof _annotation.thumbnail !== "undefined" && _annotation.thumbnail) {
   237             	image: _annotation.thumbnail
   238 	        		e.originalEvent.dataTransfer.setData("text/x-iri-image",_annotation.thumbnail);
   238             });
   239 	        	}
       
   240 	        });
       
   241             _el.on("remove", function() {
   239             _el.on("remove", function() {
   242                 _annotation.off("select", _onselect);
   240                 _annotation.off("select", _onselect);
   243                 _annotation.off("unselect", _onunselect);
   241                 _annotation.off("unselect", _onunselect);
   244             });
   242             });
   245             _annotation.on("select", _onselect);
   243             _annotation.on("select", _onselect);