prevents drag and drop import in same window

fixes #592

Introduces and preserves **_origin** field when using drag-and-drop —
bad idea? discard? different field name?

demo http://592.tiddlyspot.com
This commit is contained in:
Tobias Beer
2015-02-09 23:49:04 +01:00
parent d340277cb2
commit 09afa8297a
3 changed files with 23 additions and 13 deletions
+1 -1
View File
@@ -153,7 +153,7 @@ LinkWidget.prototype.handleDragStartEvent = function(event) {
}
// Then the data
dataTransfer.clearData();
var jsonData = this.wiki.getTiddlerAsJson(this.to),
var jsonData = this.wiki.getTiddlerAsJson(this.to,true),
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