expand.js: format exposed function

This commit is contained in:
Zankaria 2024-08-29 18:08:00 +02:00 committed by Zankaria
parent cb35582450
commit b3ff4e98ed

View File

@ -21,7 +21,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'),