summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2016-05-09 13:02:21 +0200
committerczaks <marcin@6irc.net>2016-05-09 13:02:21 +0200
commit4fe2da2fcdae3203d72a31fad75780c256ccc02c (patch)
treecd76e8a1cb9631ae066327e435fe1b01e46d1e71 /js
parent018dd48a66ec7734bad48105a32a2ae9a5f51017 (diff)
post-filter & ukko: final solution i think
Diffstat (limited to 'js')
-rw-r--r--js/post-filter.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/js/post-filter.js b/js/post-filter.js
index 3f2358e4..3bf55a51 100644
--- a/js/post-filter.js
+++ b/js/post-filter.js
@@ -179,7 +179,7 @@ if (active_page === 'thread' || active_page === 'index' || active_page === 'cata
$ele.parent().find('.body, .files, .video-container').not($ele.children('.reply').children()).hide();
// hide thread replies on index view
- if (active_page == 'index') $ele.parent().find('.omitted, .reply:not(.hidden), post_no, .mentioned, br').hide();
+ if (active_page == 'index' || active_page == 'ukko') $ele.parent().find('.omitted, .reply:not(.hidden), post_no, .mentioned, br').hide();
} else {
// normal posts
$ele.children('.body, .files, .video-container').hide();
@@ -372,6 +372,7 @@ if (active_page === 'thread' || active_page === 'index' || active_page === 'cata
*/
function filter(post, threadId, pageData) {
var $post = $(post);
+
var list = getList();
var postId = $post.find('.post_no').not('[id]').text();
var name, trip, uid, subject, comment;
@@ -814,9 +815,10 @@ if (active_page === 'thread' || active_page === 'index' || active_page === 'cata
var threadId;
if ($(post).hasClass('reply')) {
- threadId = $(post).parent().attr('id').replace('thread_', '');
+ threadId = $(post).parents('.thread').attr('id').replace('thread_', '');
} else {
threadId = $(post).attr('id').replace('thread_', '');
+ post = $(post).children('.op')[0];
}
filter(post, threadId, pageData);