forked from GithubBackups/vichan
forgot ':last'
This commit is contained in:
parent
564862f332
commit
79b6e6c72f
@ -84,23 +84,24 @@ $(document).ready(function(){
|
|||||||
var board = post.parent().data('board');
|
var board = post.parent().data('board');
|
||||||
|
|
||||||
$('<a class="post-hide-link" href="javascript:void(0)" title="Hide Post" style="float: right">[–]</a>')
|
$('<a class="post-hide-link" href="javascript:void(0)" title="Hide Post" style="float: right">[–]</a>')
|
||||||
.insertAfter($(this).children('p.intro').children('a.post_no'))
|
.insertAfter($(this).children('p.intro').children('a.post_no:last'))
|
||||||
.click(function() {
|
.click(function() {
|
||||||
hidden_data[board][id] = Math.round(Date.now() / 1000);
|
hidden_data[board][id] = Math.round(Date.now() / 1000);
|
||||||
store_data();
|
store_data();
|
||||||
var hide_link = $(this)
|
var hide_link = $(this);
|
||||||
post.children('div').hide()
|
post.children('div').hide();
|
||||||
hide_link.hide()
|
hide_link.hide();
|
||||||
$('<a class="post-show-link" href="javascript:void(0)" title="Show Post" style="float: right">[+]</a>')
|
$('<a class="post-show-link" href="javascript:void(0)" title="Show Post" style="float: right">[+]</a>')
|
||||||
.insertAfter($(this).children('p.intro').children('a.post_no'))
|
.insertAfter($(this).children('p.intro').children('a.post_no:last'))
|
||||||
.click(function() {
|
.click(function() {
|
||||||
delete hidden_data[board][id];
|
delete hidden_data[board][id];
|
||||||
store_data();
|
store_data();
|
||||||
post.children('div').show();
|
post.children('div').show();
|
||||||
|
hide_link.show();
|
||||||
$(this).remove();
|
$(this).remove();
|
||||||
hide_link.show()
|
|
||||||
});
|
});
|
||||||
})
|
});
|
||||||
if (hidden_data[board][id])
|
if (hidden_data[board][id])
|
||||||
post.find('.post-hide-link').click();
|
post.find('.post-hide-link').click();
|
||||||
}
|
}
|
||||||
@ -112,6 +113,6 @@ $(document).ready(function(){
|
|||||||
do_hide_threads.call($(post).find('div.post.op')[0]);
|
do_hide_threads.call($(post).find('div.post.op')[0]);
|
||||||
if($(post).is('div.post.reply')) {
|
if($(post).is('div.post.reply')) {
|
||||||
$(post).each(do_hide_posts);
|
$(post).each(do_hide_posts);
|
||||||
}
|
};
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user