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:
parent
c8d98316fa
commit
dde26f8103
@ -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
|
||||
});
|
||||
};
|
||||
|
@ -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>>
|
||||
|
Loading…
Reference in New Issue
Block a user