1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-01-23 07:26:54 +00:00

Added new tiddler button

This commit is contained in:
Jeremy Ruston 2013-01-17 11:38:02 +00:00
parent aba120befc
commit 94744843b6
2 changed files with 3 additions and 2 deletions

View File

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

View File

@ -5,7 +5,8 @@ title: $:/templates/PageTemplate
<!-- The page header -->
<div class="pull-right">
<$button class="btn btn-mini btn-primary">EDIT</$button>
<$button class="btn btn-mini btn-primary">Edit</$button>
<$button message="tw-NewTiddler" class="btn btn-mini btn-success">New</$button>
</div>
<div class="page-header">
! {{SiteTitle}} <small>{{SiteSubtitle}}</small>