aboutsummaryrefslogtreecommitdiff
path: root/app/views/javascript/main.phtml
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2012-12-08 17:37:08 +0100
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2012-12-08 17:37:08 +0100
commit50b34fb414b3a5a15a445e8a71bec1efbc1ecde2 (patch)
tree9ee2a5f1ba7819a8e55ffe8224056a2c33b30955 /app/views/javascript/main.phtml
parentba37c6e06fc7db2d33eab0a5b120c0186039a1ca (diff)
Ajout mode lecture (en js par contre) fix issue #6
Diffstat (limited to 'app/views/javascript/main.phtml')
-rw-r--r--app/views/javascript/main.phtml6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/javascript/main.phtml b/app/views/javascript/main.phtml
index 1fb30feb1..2bc6f4abb 100644
--- a/app/views/javascript/main.phtml
+++ b/app/views/javascript/main.phtml
@@ -20,7 +20,7 @@ function slide (new_active, old_active) {
old_active.removeClass ("active");
new_active.addClass ("active");
- if (hide_posts) {
+ if (hide_posts && !read_mode_on ) {
old_active.children (".content").slideUp (500);
new_active.children (".content").slideDown (500, function () {
$.smoothScroll({
@@ -29,7 +29,7 @@ function slide (new_active, old_active) {
});
} else {
$.smoothScroll({
- offset: new_active.position ().top - 50
+ offset: new_active.position ().top
});
}
}
@@ -104,7 +104,7 @@ function mark_favorite (active) {
}
function init_posts () {
- if (hide_posts) {
+ if (hide_posts && !read_mode_on) {
$(".post.flux:not(.active) .content").slideUp ();
}