From 8ae2305289d0f4aa5168921efcab07030b934ee5 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Mon, 6 Apr 2009 00:27:24 +0000 Subject: Hide the "no comments yet" text after the first comment is posted. Fixes ticket #196. --- modules/comment/js/comment.js | 1 + modules/comment/views/comments.html.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/comment/js/comment.js b/modules/comment/js/comment.js index bb486bbd..00fc6027 100644 --- a/modules/comment/js/comment.js +++ b/modules/comment/js/comment.js @@ -15,6 +15,7 @@ function ajaxify_comment_form() { $("#gComments .gBlockContent ul:first").append("
  • "+data+"
  • "); $("#gComments .gBlockContent ul:first li:last").effect("highlight", {color: "#cfc"}, 8000); $("#gAddCommentForm").hide(2000); + $("#gNoCommentsYet").hide(2000); }); } } diff --git a/modules/comment/views/comments.html.php b/modules/comment/views/comments.html.php index 23e1f101..25928ab5 100644 --- a/modules/comment/views/comments.html.php +++ b/modules/comment/views/comments.html.php @@ -1,6 +1,6 @@ count()): ?> -

    +

    comment!", array("attrs" => "href=\"#add_comment_form\" class=\"showCommentForm\"")) ?>

    -- cgit v1.2.3