1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-27 12:07:19 +00:00

modified alert template and execute action-deletetiddler on currentTiddler by default

This commit is contained in:
Tobias Beer 2015-10-10 16:47:11 +02:00
parent 5d36e17c18
commit 9a23c2471c
2 changed files with 2 additions and 3 deletions

View File

@ -36,7 +36,7 @@ Compute the internal state of the widget
*/
DeleteTiddlerWidget.prototype.execute = function() {
this.actionFilter = this.getAttribute("$filter");
this.actionTiddler = this.getAttribute("$tiddler");
this.actionTiddler = this.getAttribute("$tiddler",this.getVariable("currentTiddler"));
};
/*

View File

@ -2,8 +2,7 @@ title: $:/core/ui/AlertTemplate
<div class="tc-alert">
<div class="tc-alert-toolbar">
<$button message="tm-delete-tiddler" class="tc-btn-invisible">
{{$:/core/images/delete-button}}</$button>
<$button class="tc-btn-invisible"><$action-deletetiddler/>{{$:/core/images/delete-button}}</$button>
</div>
<div class="tc-alert-subtitle">
<$view field="component"/> - <$view field="modified" format="date" template="0hh:0mm:0ss DD MM YYYY"/> <$reveal type="nomatch" state="!!count" text=""><span class="tc-alert-highlight">(count: <$view field="count"/>)</span></$reveal>