mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2026-01-08 02:03:03 -08: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue