1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-02-08 23:39:46 +01:00

expand.js: format exposed function

This commit is contained in:
Zankaria 2024-08-29 18:08:00 +02:00
parent 3eba0b8721
commit 6a0c1b94b7
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().replace(_("Click reply to view."), '<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'),

View File

@ -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);
}
};