mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-24 00:50:28 +00:00
modified alert template and execute action-deletetiddler on currentTiddler by default
This commit is contained in:
parent
5d36e17c18
commit
9a23c2471c
@ -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"));
|
||||
};
|
||||
|
||||
/*
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user