expand.js: don't add weird spacing
This commit is contained in:
parent
ff3e3e2358
commit
1c13ec98ba
|
@ -32,11 +32,13 @@ $(document).ready(function(){
|
||||||
thread.find('div.hidden').remove();
|
thread.find('div.hidden').remove();
|
||||||
var post_in_doc = thread.find('#' + $(this).attr('id'));
|
var post_in_doc = thread.find('#' + $(this).attr('id'));
|
||||||
if(post_in_doc.length == 0) {
|
if(post_in_doc.length == 0) {
|
||||||
|
/*
|
||||||
if(last_expanded) {
|
if(last_expanded) {
|
||||||
$(this).addClass('expanded').insertAfter(last_expanded).before('<br class="expanded">');
|
$(this).addClass('expanded').insertAfter(last_expanded).before('<br class="expanded">');
|
||||||
} else {
|
} else {
|
||||||
$(this).addClass('expanded').insertAfter(thread.find('div.post:first')).after('<br class="expanded">');
|
$(this).addClass('expanded').insertAfter(thread.find('div.post:first')).after('<br class="expanded">');
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
last_expanded = $(this);
|
last_expanded = $(this);
|
||||||
$(document).trigger('new_post', this);
|
$(document).trigger('new_post', this);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue