From 9a23c2471cebf856d9db8295beae402bfd6d82d7 Mon Sep 17 00:00:00 2001 From: Tobias Beer Date: Sat, 10 Oct 2015 16:47:11 +0200 Subject: [PATCH] modified alert template and execute action-deletetiddler on currentTiddler by default --- core/modules/widgets/action-deletetiddler.js | 2 +- core/ui/AlertTemplate.tid | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/core/modules/widgets/action-deletetiddler.js b/core/modules/widgets/action-deletetiddler.js index 816f9f55e..f98346989 100644 --- a/core/modules/widgets/action-deletetiddler.js +++ b/core/modules/widgets/action-deletetiddler.js @@ -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")); }; /* diff --git a/core/ui/AlertTemplate.tid b/core/ui/AlertTemplate.tid index c4e457b75..59e3bc503 100644 --- a/core/ui/AlertTemplate.tid +++ b/core/ui/AlertTemplate.tid @@ -2,8 +2,7 @@ title: $:/core/ui/AlertTemplate
-<$button message="tm-delete-tiddler" class="tc-btn-invisible"> -{{$:/core/images/delete-button}} +<$button class="tc-btn-invisible"><$action-deletetiddler/>{{$:/core/images/delete-button}}
<$view field="component"/> - <$view field="modified" format="date" template="0hh:0mm:0ss DD MM YYYY"/> <$reveal type="nomatch" state="!!count" text="">(count: <$view field="count"/>)