kopia lustrzana https://github.com/miklobit/TiddlyWiki5
Merge pull request #1496 from tobibeer/just-fix-list-filter-no-refactoring
just fixes list filter, no further refactoringprint-window-tiddler
commit
e1a825f6b9
|
@ -2,9 +2,7 @@
|
||||||
title: $:/core/modules/filters/list.js
|
title: $:/core/modules/filters/list.js
|
||||||
type: application/javascript
|
type: application/javascript
|
||||||
module-type: filteroperator
|
module-type: filteroperator
|
||||||
|
|
||||||
Filter operator returning the tiddlers whose title is listed in the operand tiddler
|
Filter operator returning the tiddlers whose title is listed in the operand tiddler
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
(function(){
|
||||||
|
|
||||||
|
@ -27,7 +25,11 @@ exports.list = function(source,operator,options) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
results = list;
|
source(function(tiddler,title) {
|
||||||
|
if(list.indexOf(title) > -1) {
|
||||||
|
results.push(title);
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
return results;
|
return results;
|
||||||
};
|
};
|
||||||
|
|
Ładowanie…
Reference in New Issue