mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-23 18:17:20 +00:00
Reverted to opening new tiddlers at the top of the story
This commit is contained in:
parent
5b3bdcc662
commit
bc022f2ebd
@ -62,7 +62,7 @@ exports.eventMap["tw-navigate"] = function(event) {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// Add the tiddler to the bottom of the story (subsequently there will be a refreshInDom() call which is when we'll actually do the navigation)
|
// Add the tiddler to the bottom of the story (subsequently there will be a refreshInDom() call which is when we'll actually do the navigation)
|
||||||
story.tiddlers.push({title: event.navigateTo, template: template});
|
story.tiddlers.unshift({title: event.navigateTo, template: template});
|
||||||
this.wiki.addTiddler(new $tw.Tiddler(storyTiddler,{text: JSON.stringify(story)}));
|
this.wiki.addTiddler(new $tw.Tiddler(storyTiddler,{text: JSON.stringify(story)}));
|
||||||
// Record the details of the navigation for us to pick up in refreshInDom()
|
// Record the details of the navigation for us to pick up in refreshInDom()
|
||||||
this.lastNavigationEvent = event;
|
this.lastNavigationEvent = event;
|
||||||
|
Loading…
Reference in New Issue
Block a user