1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-16 02:19:55 +00:00

being specific about the tiddler to be deleted via action-deletetiddler

This commit is contained in:
Tobias Beer 2015-10-10 21:01:07 +02:00
parent 9a23c2471c
commit 00f6aafed6
2 changed files with 2 additions and 2 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.getVariable("currentTiddler"));
this.actionTiddler = this.getAttribute("$tiddler");
};
/*

View File

@ -2,7 +2,7 @@ title: $:/core/ui/AlertTemplate
<div class="tc-alert">
<div class="tc-alert-toolbar">
<$button class="tc-btn-invisible"><$action-deletetiddler/>{{$:/core/images/delete-button}}</$button>
<$button class="tc-btn-invisible"><$action-deletetiddler tiddler=<<currentTiddler>>/>{{$:/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>