From 6a0c1b94b78072dd27f55faf41de8252355aefe6 Mon Sep 17 00:00:00 2001 From: Zankaria Date: Thu, 29 Aug 2024 18:08:00 +0200 Subject: [PATCH] expand.js: format exposed function --- js/expand.js | 2 +- js/live-index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/expand.js b/js/expand.js index b64323d4..eba21eb9 100644 --- a/js/expand.js +++ b/js/expand.js @@ -22,7 +22,7 @@ $(document).ready(function() { let doExpand = function() { $(this) .html($(this).text().replace(_("Click reply to view."), ''+_("Click to expand")+'.')) - .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'), diff --git a/js/live-index.js b/js/live-index.js index 017d0c1f..2cc4698c 100644 --- a/js/live-index.js +++ b/js/live-index.js @@ -85,7 +85,7 @@ if (active_page == 'index' && (""+document.location).match(/\/(index\.html)?(\?| if ($(th).find(".new-posts").html() != msg) { $(th).find(".new-posts").html(msg); - $(th).find(".new-posts a").click(window.expand_fun); + $(th).find(".new-posts a").click(window.expandFun); } };