1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-24 07:30:10 +01:00

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
This commit is contained in:
czaks 2013-07-26 15:31:20 -04:00 committed by Michael Foster
parent 4b50f1475e
commit 1c33285c81
2 changed files with 9 additions and 3 deletions

View File

@ -54,11 +54,12 @@ $(document).ready(function(){
var hidden_div = thread_container.find('div.post.op > p.intro').clone(); var hidden_div = thread_container.find('div.post.op > p.intro').clone();
hidden_div.addClass('thread-hidden'); 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(' [] ', ' ')); 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>') $('<a class="unhide-thread-link" style="float:left;margin-right:5px;margin-left:0px;" href="javascript:void(0)">[+]</a><span> </span>')
.insertAfter(thread_container.find('a.hide-thread-link')) .insertBefore(hidden_div.find(':first'))
.click(function() { .click(function() {
delete hidden_data[board][id]; delete hidden_data[board][id];
store_data(); store_data();

View File

@ -404,3 +404,8 @@ table.mod.config-editor td {
table.mod.config-editor input[type="text"] { table.mod.config-editor input[type="text"] {
width: 98%; width: 98%;
} }
p.intro.thread-hidden {
margin: 0px;
padding: 0px;
}