mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-11-15 14:57:42 +00:00
Refactor navigator widget to use story utility to manipulate the storylist as well as the historylist
This commit is contained in:
@@ -1277,6 +1277,18 @@ exports.addToHistory = function(title,fromPageRect,historyTitle) {
|
||||
story.addToHistory(title,fromPageRect);
|
||||
};
|
||||
|
||||
/*
|
||||
Add a new tiddler to the story river
|
||||
title: a title string or an array of title strings
|
||||
fromTitle: the title of the tiddler from which the navigation originated
|
||||
storyTitle: title of story tiddler (defaults to $:/StoryList)
|
||||
options: see story.js
|
||||
*/
|
||||
exports.addToStory = function(title,fromTitle,storyTitle,options) {
|
||||
var story = new $tw.Story({wiki: this, storyTitle: storyTitle});
|
||||
story.addToStory(title,fromTitle,options);
|
||||
};
|
||||
|
||||
/*
|
||||
Invoke the available upgrader modules
|
||||
titles: array of tiddler titles to be processed
|
||||
|
||||
Reference in New Issue
Block a user