2001-06-18 08:57:33 +00:00
|
|
|
/**
|
|
|
|
|
* macro renders a link to reply to a comment
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
function replylink_macro(param) {
|
2003-08-02 10:46:43 +00:00
|
|
|
if (this.site.preferences.getProperty("discussions") && req.action == "main") {
|
2003-12-17 22:04:16 +00:00
|
|
|
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
|
2002-06-04 14:53:17 +00:00
|
|
|
renderImage(param);
|
2003-08-02 10:46:43 +00:00
|
|
|
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
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
2002-01-05 02:31:10 +00:00
|
|
|
* macro renders the url of this comment
|
2001-06-18 08:57:33 +00:00
|
|
|
*/
|
|
|
|
|
|
2002-01-05 02:31:10 +00:00
|
|
|
function url_macro(param) {
|
|
|
|
|
res.write(this.story.href() + "#" + this._id);
|
2004-01-07 17:27:16 +00:00
|
|
|
return;
|
2001-07-18 15:58:18 +00:00
|
|
|
}
|
2002-01-05 02:31:10 +00:00
|
|
|
|