forked from GithubBackups/vichan
Merge pull request #362 from wholelotofhs/master
Moved the post hide link to the left side
This commit is contained in:
commit
767e3e65b0
@ -87,23 +87,22 @@ $(document).ready(function(){
|
|||||||
hidden_data[board] = {}; // id : timestamp
|
hidden_data[board] = {}; // id : timestamp
|
||||||
}
|
}
|
||||||
|
|
||||||
$('<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: left; margin-right: 5px">[–]</a>')
|
||||||
.insertAfter(post.children('p.intro').children('a.post_no:last'))
|
.insertBefore(post.children('p.intro').children('input.delete'))
|
||||||
.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: left; margin-right: 5px">[+]</a>')
|
||||||
.insertAfter(post.children('p.intro').children('a.post_no:last'))
|
.insertBefore(post.children('p.intro').children('input.delete'))
|
||||||
.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();
|
hide_link.show();
|
||||||
$(this).remove();
|
$(this).remove();
|
||||||
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
if (hidden_data[board][id])
|
if (hidden_data[board][id])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user