diff options
| author | czaks <marcin@6irc.net> | 2013-07-26 15:31:20 -0400 |
|---|---|---|
| committer | Michael Foster <savetheinternet@tinyboard.org> | 2013-07-27 00:33:51 -0400 |
| commit | 1c33285c81efe174f09e99b15be81f527c0f8ae0 (patch) | |
| tree | 4dd4aaadc7e0ca9d859983aaa1f6e4e7d24e71a5 | |
| parent | 4b50f1475e5cdf6afa2db0aef0345ad00a9d6a7f (diff) | |
hide-threads.js: further fixes and customisations, mainly due to unexpanding previously not working here, but working on another boards (4chon, etc.)
Conflicts:
stylesheets/style.css
| -rw-r--r-- | js/hide-threads.js | 7 | ||||
| -rw-r--r-- | stylesheets/style.css | 5 |
2 files changed, 9 insertions, 3 deletions
diff --git a/js/hide-threads.js b/js/hide-threads.js index 14893e05..faa1289c 100644 --- a/js/hide-threads.js +++ b/js/hide-threads.js @@ -54,11 +54,12 @@ $(document).ready(function(){ var hidden_div = thread_container.find('div.post.op > p.intro').clone(); hidden_div.addClass('thread-hidden'); - hidden_div.find('a[href],input').remove(); + hidden_div.find('a[href]:not([href$=".html"]),input').remove(); + hidden_div.html(hidden_div.html().replace(' [] ', ' ')); hidden_div.html(hidden_div.html().replace(' [] ', ' ')); - $('<a class="unhide-thread-link" style="float:left;margin-right:5px" href="javascript:void(0)">[+]</a><span> </span>') - .insertAfter(thread_container.find('a.hide-thread-link')) + $('<a class="unhide-thread-link" style="float:left;margin-right:5px;margin-left:0px;" href="javascript:void(0)">[+]</a><span> </span>') + .insertBefore(hidden_div.find(':first')) .click(function() { delete hidden_data[board][id]; store_data(); diff --git a/stylesheets/style.css b/stylesheets/style.css index 12cc54d5..c0430b7c 100644 --- a/stylesheets/style.css +++ b/stylesheets/style.css @@ -404,3 +404,8 @@ table.mod.config-editor td { table.mod.config-editor input[type="text"] { width: 98%; } +p.intro.thread-hidden { + margin: 0px; + padding: 0px; +} + |
