Skip to content
Snippets Groups Projects
Commit 71cc6eaf authored by echicken's avatar echicken
Browse files

Return to thread's position in thread list after clicking "Collapse Thread" thread thread thread.

parent 7622cc87
No related branches found
No related tags found
No related merge requests found
......@@ -198,7 +198,12 @@ var printThread = function(sub, t) {
header.number
);
}
out += format("<a class='ulLink' onclick='toggleVisibility(\"sub-%s-thread-%s\")'>Collapse Thread</a>", sub, t);
out += format(
"<a class='ulLink' href='#thread-%s' onclick='toggleVisibility(\"sub-%s-thread-%s\")'>Collapse Thread</a>",
t,
sub,
t
);
if(user.alias != webIni.WebGuest && sub == 'mail' || (sub != 'mail' && user.compare_ars(msgBase.cfg.post_ars)))
out += format(
" - <a class='ulLink' onclick='addReply(\"http://%s/%sforum-async.ssjs\", \"%s\", \"%s\", \"%s\", \"%s\", \"%s\", \"%s\")'>Reply</a>",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment