From fca236dc6d6ff6e09182c560f3566904cbc7a70a Mon Sep 17 00:00:00 2001 From: Marien Fressinaud Date: Tue, 23 Oct 2012 18:29:43 +0200 Subject: affichage par catégories + meilleur exportation opml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/javascript/main.phtml | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) (limited to 'app/views/javascript/main.phtml') diff --git a/app/views/javascript/main.phtml b/app/views/javascript/main.phtml index 87b53ca9a..f5682d1f0 100644 --- a/app/views/javascript/main.phtml +++ b/app/views/javascript/main.phtml @@ -68,18 +68,9 @@ $(document).ready (function () { } }); }); - shortcut.add("space", function () { - // On plie / déplie l'article - active = $(".post.flux.active"); - active.children (".content").slideToggle (200, function () { - $.smoothScroll({ - offset: active.position ().top + 25 - }); - }); - }); // Touches de navigation - shortcut.add("up", function () { + /*shortcut.add("up", function () { old_active = $(".post.flux.active"); last_active = $(".post.flux:last"); new_active = old_active.prev (); @@ -89,15 +80,15 @@ $(document).ready (function () { } else { slide (last_active, old_active); } - }); - shortcut.add("down", function () { + });*/ + shortcut.add("space", function () { old_active = $(".post.flux.active"); first_active = $(".post.flux:first"); new_active = old_active.next (); if (new_active[0] instanceof HTMLDivElement) { slide (new_active, old_active); - } else { + } else if (new_active[0] === undefined) { slide (first_active, old_active); } }); -- cgit v1.2.3