expand.js: adjust to post_thread.html

This commit is contained in:
Zankaria 2024-08-29 18:02:10 +02:00
parent e9c89d7d5a
commit cb49b41eb9

View file

@ -21,7 +21,7 @@ $(document).ready(function() {
let doExpand = function() { let doExpand = function() {
$(this) $(this)
.html($(this).text().replace(_("Click reply to view."), '<a href="javascript:void(0)">'+_("Click to expand")+'</a>.')) .html($(this).text().concat(' <a href="javascript:void(0)">' + _("Click to expand") + '</a>.'))
.find('a').click(window.expand_fun = function() { .find('a').click(window.expand_fun = function() {
let thread = $(this).parents('[id^="thread_"]'); let thread = $(this).parents('[id^="thread_"]');
$.ajax({ $.ajax({