1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-24 22:33:16 +00:00

Fix problem with importing using wrong import tiddler name

This commit is contained in:
Jermolene 2015-08-01 13:48:46 +01:00
parent 3b321b5d26
commit cd29eed067

View File

@ -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"});
}; };