Skip to content

Node.js based forum software built for the modern web

deleted posts are collapsed clicking on them expands them, closes #138

Baris Usaklic1c9d24ee5b7
diff --git a/public/css/topic.less b/public/css/topic.less
index a556a177c6..c6b02c10c3 100644
--- a/public/css/topic.less
+++ b/public/css/topic.less
@@ -21,6 +21,13 @@
&.deleted {
-moz-opacity: 0.30;
opacity: 0.30;
+ height:30px;
+ overflow-y:hidden;
+ }
+
+ &.deleted-expanded {
+ height:100%;
+ overflow-y:default;
}
}
diff --git a/public/src/forum/topic.js b/public/src/forum/topic.js
index ac4148f1be..0f8182e379 100644
--- a/public/src/forum/topic.js
+++ b/public/src/forum/topic.js
@@ -209,6 +209,10 @@
app.loadMorePosts(tid);
}
});
+
+ $('.post-container').on('click', '.deleted', function(ev) {
+ $(this).toggleClass('deleted-expanded');
+ });
});
var reply_fn = function() {