1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 10:07:19 +00:00

Fixed cascading for with: parameters to tiddler macro

This commit is contained in:
Jeremy Ruston 2011-12-09 14:51:47 +00:00
parent 1e015c72dd
commit 91c183480c

View File

@ -94,7 +94,7 @@ wikiTextMacros.macros = {
today: {
handler: function(macroNode,store,title) {
var now = new Date(),
args = new ArgParser(macroNode.params,{noNames:true}),
args = new ArgParser(macroNode.params,{noNames:true,cascadeDefaults:true}),
value = args.byPos[0] ? utils.formatDateString(now,args.byPos[0].v) : now.toLocaleString();
macroNode.output.push({type: "text", value: value});
}