mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-06-25 23:03:15 +00:00
Changed the name of the 'list' attribute to 'field'
Other users found this to be confusing -- I have made this change in both this widget and the $checklist widget to maintain consistency
This commit is contained in:
parent
0d27f3b836
commit
2f51c3695d
|
@ -3,7 +3,7 @@ title: $:/core/modules/widgets/action-listops.js
|
|||
type: application/javascript
|
||||
module-type: widget
|
||||
|
||||
Action widget to apply list operations to any tiddler field (defaults to the 'tags' field of the current tiddler)
|
||||
Action widget to apply list operations to any tiddler field (defaults to the 'list' field of the current tiddler)
|
||||
|
||||
\*/
|
||||
(function () {
|
||||
|
@ -12,7 +12,8 @@ Action widget to apply list operations to any tiddler field (defaults to the 'ta
|
|||
/*global $tw: false */
|
||||
"use strict";
|
||||
|
||||
var Widget = require("$:/core/modules/widgets/widget.js").widget;
|
||||
var Widget = require("$:/core/modules/widgets/widget.js")
|
||||
.widget;
|
||||
|
||||
var ActionListopsWidget = function (parseTreeNode, options) {
|
||||
this.initialise(parseTreeNode, options);
|
||||
|
@ -39,7 +40,7 @@ Action widget to apply list operations to any tiddler field (defaults to the 'ta
|
|||
this.target = this.getAttribute("$tiddler", this.getVariable("currentTiddler"));
|
||||
this.filter = this.getAttribute("$filter");
|
||||
this.subfilter = this.getAttribute("$subfilter");
|
||||
this.listField = this.getAttribute("$list", "list");
|
||||
this.listField = this.getAttribute("$field", "list");
|
||||
this.listIndex = this.getAttribute("$index");
|
||||
this.filtertags = this.getAttribute("$tags");
|
||||
};
|
||||
|
@ -60,14 +61,15 @@ Action widget to apply list operations to any tiddler field (defaults to the 'ta
|
|||
Invoke the action associated with this widget
|
||||
*/
|
||||
ActionListopsWidget.prototype.invokeAction = function (triggeringWidget, event) {
|
||||
//try this
|
||||
//Apply the specified filters to the lists
|
||||
var field = this.listField,
|
||||
index = undefined,
|
||||
type = "!!",
|
||||
list = this.listField;
|
||||
if (this.listIndex) {
|
||||
field = undefined;
|
||||
index = this.listIndex; type = "##";
|
||||
index = this.listIndex;
|
||||
type = "##";
|
||||
list = this.listIndex;
|
||||
}
|
||||
if (this.filter) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user