From 250c75de2a28d5bd7b724fd170e75e5910c79ddc Mon Sep 17 00:00:00 2001 From: Marien Fressinaud Date: Mon, 3 Dec 2012 21:19:28 +0100 Subject: Correction design (issue #6), début correction bug #16 (à voir où ça en est) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/javascript/main.phtml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'app/views/javascript/main.phtml') diff --git a/app/views/javascript/main.phtml b/app/views/javascript/main.phtml index e416cad95..a9ce2c5b1 100644 --- a/app/views/javascript/main.phtml +++ b/app/views/javascript/main.phtml @@ -24,7 +24,7 @@ function slide (new_active, old_active) { old_active.children (".content").slideUp (200); new_active.children (".content").slideDown (200, function () { $.smoothScroll({ - offset: new_active.position ().top + 25 + offset: new_active.position ().top }); }); } else { @@ -32,11 +32,6 @@ function slide (new_active, old_active) { offset: new_active.position ().top + 25 }); } - - // si le dernier post est actif, on charge les suivants - if (new_active.attr ("id") == $(".post.flux:last").attr ("id")) { - load_more_posts (); - } } function add_not_read (nb) { -- cgit v1.2.3