From: Matthijs Kooijman Date: Fri, 31 Oct 2008 13:38:32 +0000 (+0100) Subject: Always include the showReply/hideReply functions. X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fprojects%2Fxerxes.git;a=commitdiff_plain;h=201a3237c38127057da1c88093678253384a46d7 Always include the showReply/hideReply functions. Previously, these javascript functions were only defined when there were any comments, but the "add comment" link uses them as well. --- diff --git a/templates/influences/influence_comments_block.html b/templates/influences/influence_comments_block.html index 5392d2f..1969591 100644 --- a/templates/influences/influence_comments_block.html +++ b/templates/influences/influence_comments_block.html @@ -1,19 +1,19 @@ {% load i18n %} {% load threadedcommentstags %} -{% if comments %} - + function hideReply(comment_id) { + YAHOO.util.Dom.setStyle('replyForm' + comment_id, 'display', 'none'); + YAHOO.util.Dom.setStyle('replyLink' + comment_id, 'display', 'block'); + } + +{% if comments %} {% for comment in comments %}
{{ comment.user }} said: