From 4bdfe54b8548bdd0321fe9811e18168bd32b860b Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Mon, 17 May 2010 15:42:03 +0200 Subject: [PATCH] prevent scroll on fragment expand (#308) --- wolnelektury/static/js/catalogue.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wolnelektury/static/js/catalogue.js b/wolnelektury/static/js/catalogue.js index 054f247df..6b61e6d63 100644 --- a/wolnelektury/static/js/catalogue.js +++ b/wolnelektury/static/js/catalogue.js @@ -79,7 +79,8 @@ function serverTime() { function() { $(this).css({background: '#FFF'}); } ).click(function() { $(this).fadeOut(function() { - $(this).prev().fadeIn() + $(this).prev().fadeIn(); + return false; }); }) } @@ -87,6 +88,7 @@ function serverTime() { $('.fragment-short-text').click(function() { $(this).fadeOut(function() { $(this).next().fadeIn() }); + return false; }).hover( function() { $(this).css({background: '#F3F3F3', cursor: 'pointer'}); }, function() { $(this).css({background: '#FFF'}); } -- 2.20.1