From 8a6f3afb8e49326b57ce1fb0917ab3c6d4551de3 Mon Sep 17 00:00:00 2001 From: Zixaphir Date: Fri, 9 Aug 2013 19:47:33 -0700 Subject: [PATCH] oops --- builds/appchan-x.user.js | 6 ++---- builds/crx/script.js | 6 ++---- src/Filtering/ThreadHiding.coffee | 4 ++-- 3 files changed, 6 insertions(+), 10 deletions(-) diff --git a/builds/appchan-x.user.js b/builds/appchan-x.user.js index a6597a8d1..9a22f1196 100644 --- a/builds/appchan-x.user.js +++ b/builds/appchan-x.user.js @@ -5783,11 +5783,9 @@ textContent: 'Show thread', href: 'javascript:;' }); - $.on(show, 'click', ThreadHiding.menu.show); + $.on(div, 'click', ThreadHiding.menu.show); $.event('AddMenuEntry', { - type: 'post' - }); - ({ + type: 'post', el: div, order: 20, open: function(_arg) { diff --git a/builds/crx/script.js b/builds/crx/script.js index ed4d25d4a..32bdec82c 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -5790,11 +5790,9 @@ textContent: 'Show thread', href: 'javascript:;' }); - $.on(show, 'click', ThreadHiding.menu.show); + $.on(div, 'click', ThreadHiding.menu.show); $.event('AddMenuEntry', { - type: 'post' - }); - ({ + type: 'post', el: div, order: 20, open: function(_arg) { diff --git a/src/Filtering/ThreadHiding.coffee b/src/Filtering/ThreadHiding.coffee index 8d1229458..c6e50ef5d 100644 --- a/src/Filtering/ThreadHiding.coffee +++ b/src/Filtering/ThreadHiding.coffee @@ -86,10 +86,10 @@ ThreadHiding = className: 'show-thread-link' textContent: 'Show thread' href: 'javascript:;' - $.on show, 'click', ThreadHiding.menu.show + $.on div, 'click', ThreadHiding.menu.show $.event 'AddMenuEntry', - type: 'post' + type: 'post' el: div order: 20 open: ({thread, isReply}) ->