1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-27 03:57:21 +00:00
This commit is contained in:
Jeremy Ruston 2013-06-05 15:38:06 +01:00
parent eff6b08b6c
commit 131874e154

View File

@ -123,10 +123,10 @@ LinkWidget.prototype.handleDragStartEvent = function(event) {
// Set the dragging class on the element being dragged
$tw.utils.addClass(event.target,"tw-tiddlylink-dragging");
// Create the drag image element
this.dragImage = this.listWidget.renderer.renderTree.document.createElement("div");
this.dragImage = this.renderer.renderTree.document.createElement("div");
this.dragImage.className = "tw-tiddler-dragger";
this.dragImage.appendChild(this.listWidget.renderer.renderTree.document.createTextNode(this.to));
this.listWidget.renderer.renderTree.document.body.appendChild(this.dragImage);
this.dragImage.appendChild(this.renderer.renderTree.document.createTextNode(this.to));
this.renderer.renderTree.document.body.appendChild(this.dragImage);
// Set the data transfer properties
var dataTransfer = event.dataTransfer;
dataTransfer.effectAllowed = "copy";