antville/code/Comment/macros.js

27 lines
591 B
JavaScript
Raw Normal View History

2001-06-18 08:57:33 +00:00
/**
* macro renders a link to reply to a comment
*/
function replylink_macro(param) {
if (this.site.preferences.getProperty("discussions") && req.action == "main") {
Html.openLink({href: this.href("comment") +
(param.anchor ? "#" + param.anchor : "")});
2001-06-18 08:57:33 +00:00
if (!param.image)
res.write(param.text ? param.text : "reply");
else
renderImage(param);
Html.closeLink();
2001-06-18 08:57:33 +00:00
}
2004-01-07 17:27:16 +00:00
return;
2001-06-18 08:57:33 +00:00
}
/**
* macro renders the url of this comment
2001-06-18 08:57:33 +00:00
*/
function url_macro(param) {
res.write(this.story.href() + "#" + this._id);
2004-01-07 17:27:16 +00:00
return;
}