1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-27 12:07:19 +00:00

Reverted to opening new tiddlers at the top of the story

This commit is contained in:
Jeremy Ruston 2012-05-20 14:25:50 +01:00
parent 5b3bdcc662
commit bc022f2ebd

View File

@ -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;