diff --git a/js/expand.js b/js/expand.js
index 4dde131b..16535cd2 100644
--- a/js/expand.js
+++ b/js/expand.js
@@ -20,8 +20,8 @@ $(document).ready(function() {
let doExpand = function() {
$(this)
- .html($(this).text().replace(_("Click reply to view."), '' + _("Click to expand") + '.'))
- .find('a').click(window.expandFun = function() {
+ .html($(this).text().concat(' ' + _('Click to expand') + '.'))
+ .find('a').click(window.expand_fun = function() {
let thread = $(this).parents('[id^="thread_"]');
$.ajax({
url: thread.find('p.intro a.post_no:first').attr('href'),
@@ -35,7 +35,8 @@ $(document).ready(function() {
if (lastExpanded) {
$(this).addClass('expanded').insertAfter(lastExpanded).before('
');
} else {
- $(this).addClass('expanded').insertAfter(thread.find('div.post:first')).after('
');
+ let opBr = thread.find('div.post').first().next();
+ $(this).addClass('expanded').insertAfter(opBr).after('
');
}
lastExpanded = $(this);
$(document).trigger('new_post', this);