From c1c9d24ee5b70a646cb2b5d250ef2a9074aaa0e6 Mon Sep 17 00:00:00 2001 From: Baris Usakli Date: Thu, 8 Aug 2013 13:04:26 -0400 Subject: [PATCH] deleted posts are collapsed clicking on them expands them, closes #138 --- public/css/topic.less | 7 +++++++ public/src/forum/topic.js | 4 ++++ 2 files changed, 11 insertions(+) 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() {