aboutsummaryrefslogtreecommitdiff
path: root/app/views/javascript
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/javascript')
-rw-r--r--app/views/javascript/main.phtml7
1 files changed, 1 insertions, 6 deletions
diff --git a/app/views/javascript/main.phtml b/app/views/javascript/main.phtml
index e416cad95..a9ce2c5b1 100644
--- a/app/views/javascript/main.phtml
+++ b/app/views/javascript/main.phtml
@@ -24,7 +24,7 @@ function slide (new_active, old_active) {
old_active.children (".content").slideUp (200);
new_active.children (".content").slideDown (200, function () {
$.smoothScroll({
- offset: new_active.position ().top + 25
+ offset: new_active.position ().top
});
});
} else {
@@ -32,11 +32,6 @@ function slide (new_active, old_active) {
offset: new_active.position ().top + 25
});
}
-
- // si le dernier post est actif, on charge les suivants
- if (new_active.attr ("id") == $(".post.flux:last").attr ("id")) {
- load_more_posts ();
- }
}
function add_not_read (nb) {