mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-25 01:20:30 +00:00
Fix problem with importing using wrong import tiddler name
This commit is contained in:
parent
3b321b5d26
commit
cd29eed067
@ -552,12 +552,12 @@ NavigatorWidget.prototype.handlePerformImportEvent = function(event) {
|
|||||||
});
|
});
|
||||||
// Replace the $:/Import tiddler with an import report
|
// Replace the $:/Import tiddler with an import report
|
||||||
this.wiki.addTiddler(new $tw.Tiddler({
|
this.wiki.addTiddler(new $tw.Tiddler({
|
||||||
title: IMPORT_TITLE,
|
title: event.param,
|
||||||
text: importReport.join("\n"),
|
text: importReport.join("\n"),
|
||||||
"status": "complete"
|
"status": "complete"
|
||||||
}));
|
}));
|
||||||
// Navigate to the $:/Import tiddler
|
// Navigate to the $:/Import tiddler
|
||||||
this.addToHistory([IMPORT_TITLE]);
|
this.addToHistory([event.param]);
|
||||||
// Trigger an autosave
|
// Trigger an autosave
|
||||||
$tw.rootWidget.dispatchEvent({type: "tm-auto-save-wiki"});
|
$tw.rootWidget.dispatchEvent({type: "tm-auto-save-wiki"});
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user