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:
parent
aba120befc
commit
94744843b6
@ -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;
|
||||
};
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user