From 201a3237c38127057da1c88093678253384a46d7 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Fri, 31 Oct 2008 14:38:32 +0100 Subject: [PATCH] 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. --- .../influences/influence_comments_block.html | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) 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:
-- 2.30.2