From 34400594ec4d737190a664b5d25007c7904bd04b Mon Sep 17 00:00:00 2001 From: Raphael Date: Wed, 30 Jun 2010 13:29:20 -0700 Subject: [PATCH] RS, AML; fixed jumping to top of page on comment toggle --- public/javascripts/view.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/javascripts/view.js b/public/javascripts/view.js index 0a916e19a..77966748b 100644 --- a/public/javascripts/view.js +++ b/public/javascripts/view.js @@ -61,7 +61,8 @@ $(document).ready(function(){ // in field label plugin - $(".show_post_comments").live('click', function() { + $(".show_post_comments").live('click', function(event) { + event.preventDefault(); if( $(this).hasClass( "visible" )) { $(this).html($(this).html().replace("hide", "show")); $(this).parents("li").children(".comments").fadeOut(100);