From a696c716e39840a93d30859c7296d7ce3f8d2b92 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Tue, 15 Oct 2013 14:30:36 +0100 Subject: [PATCH] Support the remaining events on the navigator widget --- core/modules/new_widgets/navigator.js | 178 ++++++++++++++++++++++++++ 1 file changed, 178 insertions(+) diff --git a/core/modules/new_widgets/navigator.js b/core/modules/new_widgets/navigator.js index 448ce29a2..33702ebf8 100755 --- a/core/modules/new_widgets/navigator.js +++ b/core/modules/new_widgets/navigator.js @@ -127,6 +127,184 @@ NavigatorWidget.prototype.handleCloseTiddlerEvent = function(event) { return false; }; +// Close all tiddlers +NavigatorWidget.prototype.handleCloseAllTiddlersEvent = function(event) { + this.storyList = []; + this.saveStoryList(); + return false; +}; + +// Place a tiddler in edit mode +NavigatorWidget.prototype.handleEditTiddlerEvent = function(event) { + this.getStoryList(); + // Replace the specified tiddler with a draft in edit mode + for(var t=0; t