forked from leftypol/leftypol
expand.js: fix #191
This commit is contained in:
parent
a7376d2a83
commit
1df69f94de
1 changed files with 2 additions and 1 deletions
|
@ -35,7 +35,8 @@ $(document).ready(function() {
|
|||
if (lastExpanded) {
|
||||
$(this).addClass('expanded').insertAfter(lastExpanded).before('<br class="expanded">');
|
||||
} else {
|
||||
$(this).addClass('expanded').insertAfter(thread.find('div.post:first')).after('<br class="expanded">');
|
||||
let opBr = thread.find('div.post').first().next();
|
||||
$(this).addClass('expanded').insertAfter(opBr).after('<br class="expanded">');
|
||||
}
|
||||
lastExpanded = $(this);
|
||||
$(document).trigger('new_post', this);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue