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:
parent
3eba0b8721
commit
6a0c1b94b7
@ -22,7 +22,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().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_"]');
|
let thread = $(this).parents('[id^="thread_"]');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: thread.find('p.intro a.post_no:first').attr('href'),
|
url: thread.find('p.intro a.post_no:first').attr('href'),
|
||||||
|
@ -85,7 +85,7 @@ if (active_page == 'index' && (""+document.location).match(/\/(index\.html)?(\?|
|
|||||||
|
|
||||||
if ($(th).find(".new-posts").html() != msg) {
|
if ($(th).find(".new-posts").html() != msg) {
|
||||||
$(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);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user