1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-01-22 23:16:53 +00:00

Remove CloseTiddler message to "close"

This commit is contained in:
Jeremy Ruston 2012-07-15 17:36:02 +01:00
parent c8d98316fa
commit dde26f8103
2 changed files with 3 additions and 3 deletions

View File

@ -209,7 +209,7 @@ exports.eventMap["tw-SaveTiddler"] = function(event) {
};
// Close a specified tiddler
exports.eventMap["tw-CloseTiddler"] = function(event) {
exports.eventMap["tw-close"] = function(event) {
if(this.hasParameter("story")) {
var t,storyElement;
this.getStory();
@ -234,7 +234,7 @@ exports.executeMacro = function() {
this.content[t].execute(this.parents,this.tiddlerTitle);
}
return $tw.Tree.Element("div",attributes,this.content,{
events: ["tw-navigate","tw-EditTiddler","tw-SaveTiddler","tw-CloseTiddler","tw-NavigateBack"],
events: ["tw-navigate","tw-EditTiddler","tw-SaveTiddler","tw-close","tw-NavigateBack"],
eventHandler: this
});
};

View File

@ -4,7 +4,7 @@ modifier: JeremyRuston
<div class="title">
<span><<view title>></span>
<<button EditTiddler class:"btn-invisible"><[img[$:/core/images/edit-button.svg]]>>
<<button CloseTiddler class:"btn-invisible pull-right"><[img[$:/core/images/close-button.svg]]>>
<<button close class:"btn-invisible pull-right"><[img[$:/core/images/close-button.svg]]>>
</div>
<div class="small">
<<view modifier link>> <<view modified date>>