expand.js: format exposed function

This commit is contained in:
Zankaria 2024-08-29 18:08:00 +02:00
parent 29cfbfc779
commit c45774c588
2 changed files with 2 additions and 2 deletions

View file

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