From ba37c6e06fc7db2d33eab0a5b120c0186039a1ca Mon Sep 17 00:00:00 2001 From: Marien Fressinaud Date: Sat, 8 Dec 2012 13:28:53 +0100 Subject: optimisation de la mise à jour des flux --> attention, modification de la BDD nécessaire MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/javascript/main.phtml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'app/views/javascript') diff --git a/app/views/javascript/main.phtml b/app/views/javascript/main.phtml index a9ce2c5b1..1fb30feb1 100644 --- a/app/views/javascript/main.phtml +++ b/app/views/javascript/main.phtml @@ -21,15 +21,15 @@ function slide (new_active, old_active) { new_active.addClass ("active"); if (hide_posts) { - old_active.children (".content").slideUp (200); - new_active.children (".content").slideDown (200, function () { + old_active.children (".content").slideUp (500); + new_active.children (".content").slideDown (500, function () { $.smoothScroll({ - offset: new_active.position ().top + offset: new_active.position ().top - 50 }); }); } else { $.smoothScroll({ - offset: new_active.position ().top + 25 + offset: new_active.position ().top - 50 }); } } -- cgit v1.2.3