1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-09-29 23:40:45 +00:00

Fix problem with dragging images within TW5

Dragging an image within the same TW5 window was causing a crash
This commit is contained in:
Jermolene 2013-11-20 22:52:48 +00:00
parent 6945283fec
commit c4e6c91986

View File

@ -106,7 +106,7 @@ DropZoneWidget.prototype.importData = function(dataTransfer) {
if(data !== "") {
var tiddlerFields = dataType.convertToFields(data);
if(!tiddlerFields.title) {
tiddlerFields.title = this.generateTitle("Untitled");
tiddlerFields.title = this.wiki.generateNewTitle("Untitled");
}
this.dispatchEvent({type: "tw-import-tiddlers", param: JSON.stringify([tiddlerFields])});
return;