1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-25 06:43:15 +00:00

FIX "Observe openLinkFromOutsideRiver ..." (#3516)

I assumed the attribute to be available but it's not
This commit is contained in:
BurningTreeC 2018-11-06 15:33:41 +01:00 committed by Jeremy Ruston
parent 97b098b059
commit aeaf5ee5b6

View File

@ -469,7 +469,7 @@ NavigatorWidget.prototype.handleNewTiddlerEvent = function(event) {
if(storyList.indexOf(draftTitle) === -1) { if(storyList.indexOf(draftTitle) === -1) {
var slot = storyList.indexOf(event.navigateFromTitle); var slot = storyList.indexOf(event.navigateFromTitle);
if(slot === -1) { if(slot === -1) {
slot = this.openLinkFromOutsideRiver === "bottom" ? storyList.length - 1 : slot; slot = this.getAttribute("openLinkFromOutsideRiver","top") === "bottom" ? storyList.length - 1 : slot;
} }
storyList.splice(slot + 1,0,draftTitle); storyList.splice(slot + 1,0,draftTitle);
} }