* check for param.as == "url" and/or param.as == "link" wherevery it (hopefully) makes sense

* cleaned up a little bit (code, comments)
This commit is contained in:
Tobi Schäfer 2004-07-30 13:34:13 +00:00
parent c42c959be7
commit 94cb4c0a22
7 changed files with 53 additions and 19 deletions

View file

@ -43,6 +43,8 @@ function creator_macro(param) {
return;
if (param.as == "link" && this.creator.url)
Html.link({href: this.creator.url}, this.creator.name);
else if (param.as == "url")
res.write(this.creator.url);
else
res.write(this.creator.name);
return;
@ -56,6 +58,8 @@ function modifier_macro(param) {
return;
if (param.as == "link" && this.modifier.url)
Html.link({href: this.modifier.url}, this.modifier.name);
else if (param.as == "url")
res.write(this.modifier.url);
else
res.write(this.modifier.name);
return;