diff options
| author | 2013-03-11 20:26:22 +0100 | |
|---|---|---|
| committer | 2013-03-11 20:26:22 +0100 | |
| commit | e405af1049a6abbee717db0d4e289f4cd4862b67 (patch) | |
| tree | 6f2551ca2ea2f95bd31fd045a86e85caa79a7898 /app/views/javascript/main.phtml | |
| parent | 53aef139b8c61f41fede93b3f58659820b10ccf4 (diff) | |
Màj design + suppression endless_mode + suppression read_mode (reviendra sous une autre forme ?)
Diffstat (limited to 'app/views/javascript/main.phtml')
| -rw-r--r-- | app/views/javascript/main.phtml | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/app/views/javascript/main.phtml b/app/views/javascript/main.phtml index cb8f0c0c4..7ea16737b 100644 --- a/app/views/javascript/main.phtml +++ b/app/views/javascript/main.phtml @@ -20,11 +20,11 @@ function slide (new_active, old_active) { old_active.removeClass ("active"); new_active.addClass ("active"); - if (hide_posts && !read_mode_on ) { + if (hide_posts) { old_active.children (".content").slideUp (500); new_active.children (".content").slideDown (500, function () { $.smoothScroll({ - offset: new_active.position ().top - 50 + offset: new_active.position ().top }); }); } else { @@ -104,7 +104,7 @@ function mark_favorite (active) { } function init_posts () { - if (hide_posts && !read_mode_on) { + if (hide_posts) { $(".post.flux:not(.active) .content").slideUp (); } @@ -212,10 +212,8 @@ $(document).ready (function () { redirect (url, false); }); shortcut.add("<?php echo $s['go_website']; ?>", function () { - url = $(".post.flux.active h1.title a").attr ("href"); + url = $(".post.flux.active .link a").attr ("href"); redirect (url, true); }); - - $("#categories").height ($('body').height () - $("#categories").position ().top); }); |
