diff options
| author | 2013-10-07 21:48:22 +0200 | |
|---|---|---|
| committer | 2013-10-07 21:48:22 +0200 | |
| commit | 978a48a1d653612f5c3412a2e3e16ccee8359ffc (patch) | |
| tree | 6f712cc42dc03097a7ed1cb55dc5e0c7b0fad26a /app/views/javascript/main.phtml | |
| parent | 381df3aea425338455ac1e3534105cadf44182d9 (diff) | |
Fix le scroll en changeant d'article
Diffstat (limited to 'app/views/javascript/main.phtml')
| -rw-r--r-- | app/views/javascript/main.phtml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/views/javascript/main.phtml b/app/views/javascript/main.phtml index 8ff3ec54b..37da448d2 100644 --- a/app/views/javascript/main.phtml +++ b/app/views/javascript/main.phtml @@ -54,6 +54,9 @@ function toggleContent (new_active, old_active) { if (hide_posts) { old_active.children (".flux_content").toggle (0); + new_pos = new_active.position ().top; + old_scroll = $(box_to_move).scrollTop (); + if(relative_move) { new_pos += old_scroll; } |
