From 9bbe8053c73c875dca7c838e708a8829a80dacf6 Mon Sep 17 00:00:00 2001 From: Chad Kieffer Date: Thu, 12 Feb 2009 07:07:11 +0000 Subject: Added a show comment form button. Add comment form is revealed when the button is clicked. Used jQuery UI Effect to .highlight() to bring attention to newly added comments. Also added a named anchor to our block library to allow direct linking/scrolling to those blocks on the page. --- modules/comment/js/comment.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'modules/comment/js/comment.js') diff --git a/modules/comment/js/comment.js b/modules/comment/js/comment.js index b000a3a2..bb486bbd 100644 --- a/modules/comment/js/comment.js +++ b/modules/comment/js/comment.js @@ -13,9 +13,10 @@ function ajaxify_comment_form() { if (data.result == "success") { $.get(data.resource, function(data, textStatus) { $("#gComments .gBlockContent ul:first").append("
  • "+data+"
  • "); - $("#gComments .gBlockContent ul:first li:last").hide().slideDown(); + $("#gComments .gBlockContent ul:first li:last").effect("highlight", {color: "#cfc"}, 8000); + $("#gAddCommentForm").hide(2000); }); } } }); -}; +} -- cgit v1.2.3