From ebc21d0fc9ef82a0885e026443ce701f1aca8d7c Mon Sep 17 00:00:00 2001 From: James Campos Date: Sat, 11 Jun 2011 13:50:44 -0700 Subject: [PATCH] move `hidden` button into `main` --- 4chan_x.user.js | 10 +++++++++- script.coffee | 10 ++++++++-- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 15129a139..a663b1a57 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -958,7 +958,7 @@ var arr, checked, description, dialog, hiddenNum, hiddenThreads, html, input, key, li, link, main, obj, ul, _i, _j, _len, _len2, _ref, _ref2, _ref3; hiddenThreads = $.getValue("hiddenThreads/" + g.BOARD + "/", {}); hiddenNum = Object.keys(g.hiddenReplies).length + Object.keys(hiddenThreads).length; - html = "
Options X

main | sauce | time
Donate
support throd | github | uso

"; + html = "
Options X

main | sauce | time
Donate
support throd | github | uso

"; dialog = ui.dialog('options', { top: '25%', left: '25%' @@ -981,6 +981,14 @@ } $.append(main, ul); } + ul = $.el('ul', { + textContent: 'Other' + }); + li = $.el('li', { + innerHTML: " : Forget all hidden posts. Useful if you accidentally hide a post and have `show stubs` disabled." + }); + $.append(ul, li); + $.append(main, ul); _ref2 = $$('input[type=checkbox]', dialog); for (_i = 0, _len = _ref2.length; _i < _len; _i++) { input = _ref2[_i]; diff --git a/script.coffee b/script.coffee index 81cccf84e..ad39359cb 100644 --- a/script.coffee +++ b/script.coffee @@ -725,8 +725,7 @@ options =
Options X

-
-
main | sauce | time
+ main | sauce | time
Donate
@@ -771,6 +770,13 @@ options = innerHTML: ": #{description}" $.append ul, li $.append main, ul + ul = $.el 'ul', + textContent: 'Other' + li = $.el 'li', + innerHTML: " : Forget all hidden posts. Useful if you accidentally hide a post and have `show stubs` disabled." + $.append ul, li + $.append main, ul + for input in $$ 'input[type=checkbox]', dialog $.bind input, 'click', $.cb.checked $.bind $('input[type=button]', dialog), 'click', options.cb.clearHidden