mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-17 23:34:50 +00:00
Fixed problem with list filter
A bug was preventing the tiddler title from being omitted in the list filter (ie, [list[HelloThere!!field]] worked, but [list[!!field]] did not.
This commit is contained in:
parent
8d031afa94
commit
70ed6e6ad3
@ -18,7 +18,7 @@ Export our filter function
|
||||
exports.list = function(source,operator,options) {
|
||||
var results = [],
|
||||
tr = $tw.utils.parseTextReference(operator.operand),
|
||||
list = options.wiki.getTiddlerList(tr.title,tr.field,tr.index);
|
||||
list = options.wiki.getTiddlerList(tr.title || options.currTiddlerTitle,tr.field,tr.index);
|
||||
function checkTiddler(title) {
|
||||
var match = list.indexOf(title) !== -1;
|
||||
if(operator.prefix === "!") {
|
||||
|
Loading…
Reference in New Issue
Block a user