Skip to content

Commit

Permalink
Observe openLinkFromOutsideRiver when creating new tiddlers (#3514)
Browse files Browse the repository at this point in the history
  • Loading branch information
BurningTreeC authored and Jermolene committed Nov 6, 2018
1 parent 457f037 commit 97b098b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/modules/widgets/navigator.js
Expand Up @@ -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) {
Expand Down

0 comments on commit 97b098b

Please sign in to comment.