From 94744843b64c6e90d7dbcf20f65cfc7f51d561fa Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Thu, 17 Jan 2013 11:38:02 +0000 Subject: [PATCH] Added new tiddler button --- core/modules/widgets/navigator.js | 2 +- core/templates/PageTemplate.tid | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/core/modules/widgets/navigator.js b/core/modules/widgets/navigator.js index f9836e48a..169dea9f1 100644 --- a/core/modules/widgets/navigator.js +++ b/core/modules/widgets/navigator.js @@ -212,7 +212,7 @@ NavigatorWidget.prototype.handleNewTiddlerEvent = function(event) { // Add a new record to the top of the history stack var history = this.renderer.renderTree.wiki.getTiddlerData(this.historyTitle,[]); history.push({title: draftTitle}); - this.renderer.renderTree.wiki.setTiddlerData(this.historyTitle,historyList); + this.renderer.renderTree.wiki.setTiddlerData(this.historyTitle,history); event.stopPropagation(); return false; }; diff --git a/core/templates/PageTemplate.tid b/core/templates/PageTemplate.tid index 8b1e311e9..4550a0b92 100644 --- a/core/templates/PageTemplate.tid +++ b/core/templates/PageTemplate.tid @@ -5,7 +5,8 @@ title: $:/templates/PageTemplate
-<$button class="btn btn-mini btn-primary">EDIT +<$button class="btn btn-mini btn-primary">Edit +<$button message="tw-NewTiddler" class="btn btn-mini btn-success">New