forked from GithubBackups/vichan
expand.js: format exposed function
This commit is contained in:
parent
cb35582450
commit
b3ff4e98ed
@ -21,7 +21,7 @@ $(document).ready(function() {
|
|||||||
let doExpand = function() {
|
let doExpand = function() {
|
||||||
$(this)
|
$(this)
|
||||||
.html($(this).text().concat(' <a href="javascript:void(0)">' + _('Click to expand') + '</a>.'))
|
.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_"]');
|
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'),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user