1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-11-16 15:28:24 +00:00

Revert "prevents drag and drop import in same window"

This reverts commit 09afa8297a.
This commit is contained in:
Tobias Beer
2015-02-10 23:33:19 +01:00
parent 09afa8297a
commit 30f2c06c9e
3 changed files with 13 additions and 23 deletions

View File

@@ -153,7 +153,7 @@ LinkWidget.prototype.handleDragStartEvent = function(event) {
}
// Then the data
dataTransfer.clearData();
var jsonData = this.wiki.getTiddlerAsJson(this.to,true),
var jsonData = this.wiki.getTiddlerAsJson(this.to),
textData = this.wiki.getTiddlerText(this.to,""),
title = (new RegExp("^" + $tw.config.textPrimitives.wikiLink + "$","mg")).exec(this.to) ? this.to : "[[" + this.to + "]]";
// IE doesn't like these content types