1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-16 02:19:55 +00:00

Observe openLinkFromOutsideRiver when creating new tiddlers (#3514)

This commit is contained in:
BurningTreeC 2018-11-06 14:55:18 +01:00 committed by Jeremy Ruston
parent 457f03798c
commit 97b098b059

View File

@ -468,6 +468,9 @@ NavigatorWidget.prototype.handleNewTiddlerEvent = function(event) {
// Update the story to insert the new draft at the top and remove any existing tiddler
if(storyList.indexOf(draftTitle) === -1) {
var slot = storyList.indexOf(event.navigateFromTitle);
if(slot === -1) {
slot = this.openLinkFromOutsideRiver === "bottom" ? storyList.length - 1 : slot;
}
storyList.splice(slot + 1,0,draftTitle);
}
if(storyList.indexOf(title) !== -1) {