diff options
| author | 2012-12-08 13:28:53 +0100 | |
|---|---|---|
| committer | 2012-12-08 13:28:53 +0100 | |
| commit | ba37c6e06fc7db2d33eab0a5b120c0186039a1ca (patch) | |
| tree | 7f9ac69dddd0ac1d07781f7d267b6d6e0ef47a4c /app/views/javascript/main.phtml | |
| parent | acc0c6f424fb7d4a4ab8ac52995ac746b0c1c1a5 (diff) | |
optimisation de la mise à jour des flux --> attention, modification de la BDD nécessaire
Diffstat (limited to 'app/views/javascript/main.phtml')
| -rw-r--r-- | app/views/javascript/main.phtml | 8 |
1 files changed, 4 insertions, 4 deletions
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 }); } } |
