From e405af1049a6abbee717db0d4e289f4cd4862b67 Mon Sep 17 00:00:00 2001 From: Marien Fressinaud Date: Mon, 11 Mar 2013 20:26:22 +0100 Subject: Màj design + suppression endless_mode + suppression read_mode (reviendra sous une autre forme ?) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/javascript/main.phtml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'app/views/javascript/main.phtml') 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("", 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); }); -- cgit v1.2.3