From: Radek Czajka Date: Mon, 17 May 2010 13:42:03 +0000 (+0200) Subject: prevent scroll on fragment expand (#308) X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/4bdfe54b8548bdd0321fe9811e18168bd32b860b?hp=--cc prevent scroll on fragment expand (#308) --- 4bdfe54b8548bdd0321fe9811e18168bd32b860b 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'}); }