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

More action-deletetiddler fixes

This commit is contained in:
Jermolene 2014-11-09 16:53:33 +00:00
parent 8c67e11365
commit d2ab7c5986
2 changed files with 11 additions and 3 deletions

View File

@ -55,7 +55,7 @@ DeleteTiddlerWidget.prototype.refresh = function(changedTiddlers) {
Invoke the action associated with this widget
*/
DeleteTiddlerWidget.prototype.invokeAction = function(triggeringWidget,event) {
var tiddlers;
var tiddlers = [];
if(this.actionFilter) {
tiddlers = this.wiki.filterTiddlers(this.actionFilter,this);
}

View File

@ -25,10 +25,18 @@ The ''action-deletetiddler'' widget is invisible. Any content within it is ignor
! Examples
Here is an example of a button that deletes the tiddler HelloThere. Note:
Here is an example of a button that deletes the tiddler HelloThere:
<$macrocall $name='wikitext-example-without-html'
src='<$button>
<$action-deletetiddler $tiddler="HelloThere"/>
Delete "HelloThere"
Delete "~HelloThere"
</$button>'/>
Here is an example of a button that deletes all tiddlers tagged [[TableOfContents]]:
<$macrocall $name='wikitext-example-without-html'
src='<$button>
<$action-deletetiddler $filter="[tag[TableOfContents]]"/>
Delete tiddlers tagged "~TableOfContents"
</$button>'/>