From 4991c4d6dc7d8fd888ed3b8578dc5655ee5db3ce Mon Sep 17 00:00:00 2001 From: Tobias Beer Date: Wed, 11 Feb 2015 12:01:57 +0100 Subject: [PATCH] just fixes list filter, no further refactoring previously did not correctly handle / match the source but only output the list as is replaces https://github.com/Jermolene/TiddlyWiki5/pull/1419 --- core/modules/filters/list.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/core/modules/filters/list.js b/core/modules/filters/list.js index 1b23b9382..7ea1fe683 100644 --- a/core/modules/filters/list.js +++ b/core/modules/filters/list.js @@ -2,9 +2,7 @@ title: $:/core/modules/filters/list.js type: application/javascript module-type: filteroperator - Filter operator returning the tiddlers whose title is listed in the operand tiddler - \*/ (function(){ @@ -27,7 +25,11 @@ exports.list = function(source,operator,options) { } }); } else { - results = list; + source(function(tiddler,title) { + if(list.indexOf(title) > -1) { + results.push(title); + } + }); } return results; };