mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-23 10:07:19 +00:00
Minor coding style tweaks
This commit is contained in:
parent
31fc9babfe
commit
a86cfe2663
@ -18,8 +18,8 @@ Export our filter function
|
|||||||
exports.recent = function(source,operator,options) {
|
exports.recent = function(source,operator,options) {
|
||||||
var results = [],
|
var results = [],
|
||||||
fieldName = operator.suffix || "modified",
|
fieldName = operator.suffix || "modified",
|
||||||
targetTimeStamp = (new Date()).setHours(0,0,0,0) - 1000*60*60*24*(parseInt(operator.operand,10)||0);
|
targetTimeStamp = (new Date()).setHours(0,0,0,0) - 1000*60*60*24*(parseInt(operator.operand,10) || 0),
|
||||||
var isRecent = function(dateField) {
|
isRecent = function(dateField) {
|
||||||
return targetTimeStamp <= (new Date(dateField)).setHours(0,0,0,0);
|
return targetTimeStamp <= (new Date(dateField)).setHours(0,0,0,0);
|
||||||
};
|
};
|
||||||
source(function(tiddler,title) {
|
source(function(tiddler,title) {
|
||||||
|
Loading…
Reference in New Issue
Block a user