forked from leftypol/leftypol
expand.js: format exposed function
This commit is contained in:
parent
29cfbfc779
commit
c45774c588
2 changed files with 2 additions and 2 deletions
|
@ -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'),
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue