aboutsummaryrefslogtreecommitdiff
path: root/app/views/javascript/main.phtml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/javascript/main.phtml')
-rw-r--r--app/views/javascript/main.phtml17
1 files changed, 4 insertions, 13 deletions
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);
}
});