Ajout mode lecture (en js par contre) fix issue #6

This commit is contained in:
Marien Fressinaud committed 2012-12-08 17:37:08 +01:00
1 parent ba37c6e06f
commit 50b34fb414
6 files changed
+137 -4

No files matched your search

+3 -3
View File
@@ -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 ();
}