From 7d96448ecbf0c7d24bf851db13d1b81bb726024e Mon Sep 17 00:00:00 2001 From: Jakob Hilden Date: Mon, 23 Feb 2009 00:46:25 +0000 Subject: added additional comment link, if no comments have been made yet. --- modules/comment/views/comments.html.php | 9 ++++++--- themes/default/js/ui.init.js | 4 ++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/modules/comment/views/comments.html.php b/modules/comment/views/comments.html.php index ce99cbe7..575a7eca 100644 --- a/modules/comment/views/comments.html.php +++ b/modules/comment/views/comments.html.php @@ -1,4 +1,10 @@ +count()): ?> +

+ + ! +

+ -count()): ?> - - diff --git a/themes/default/js/ui.init.js b/themes/default/js/ui.init.js index 3c6ca777..ffcc3ed3 100644 --- a/themes/default/js/ui.init.js +++ b/themes/default/js/ui.init.js @@ -55,10 +55,10 @@ $(document).ready(function() { // Collapse comments form, insert button to expand if ($("#gAddCommentForm").length) { - var showCommentForm = 'Add a comment'; + var showCommentForm = 'Add a comment'; $("#gAddCommentForm").hide(); $("#gComments").prepend(showCommentForm); - $("#showCommentForm").click(function(){ + $(".showCommentForm").click(function(){ $("#gAddCommentForm").show(1000); }); } -- cgit v1.2.3