mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-17 23:34:50 +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:
parent
6945283fec
commit
c4e6c91986
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user