Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
9f72dc8b
Commit
9f72dc8b
authored
13 years ago
by
echicken
Browse files
Options
Downloads
Patches
Plain Diff
Sub-board names & thread subjects are links again.
parent
4c1c8ee4
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
web/root/ecWeb/lib/forumLib.ssjs
+4
-6
4 additions, 6 deletions
web/root/ecWeb/lib/forumLib.ssjs
with
4 additions
and
6 deletions
web/root/ecWeb/lib/forumLib.ssjs
+
4
−
6
View file @
9f72dc8b
...
...
@@ -30,9 +30,9 @@ function sortnumber(a,b) {
// Generate a list of boards & their sub-boards, using client-side JS to toggle visibility of certain elements
function
printBoards
()
{
for
(
mg
in
msg_area
.
grp_list
)
{
print
(
"
<div class='standardBorder standardPadding underMargin subBoardHeaderColor'
onclick=toggleVisibility('grp
"
+
msg_area
.
grp_list
[
mg
].
number
+
"
')
>
"
);
print
(
"
<div class='headingFont'><
span onmouseover='this.className=
\"
fakeUlLink
\"
' onmouseout='this.className=
\
"\"
'>
"
+
msg_area
.
grp_list
[
mg
].
name
+
"
</
span
></div>
"
);
print
(
"
<div id=stats
"
+
msg_area
.
grp_list
[
mg
].
number
+
"
></div>
"
);
print
(
"
<div class='standardBorder standardPadding underMargin subBoardHeaderColor'>
"
);
print
(
"
<div class='headingFont'><
a class=ulLink href='javascript:toggleVisibility(
\"
grp
"
+
msg_area
.
grp_list
[
mg
].
number
+
"
\"
)
'>
"
+
msg_area
.
grp_list
[
mg
].
name
+
"
</
a
></div>
"
);
print
(
"
<div id=stats
"
+
msg_area
.
grp_list
[
mg
].
number
+
"
onclick=toggleVisibility('grp
"
+
msg_area
.
grp_list
[
mg
].
number
+
"
')
></div>
"
);
print
(
"
</div>
"
);
print
(
"
<div id=grp
"
+
msg_area
.
grp_list
[
mg
].
number
+
"
style=display:none;>
"
);
var
a
=
0
;
...
...
@@ -214,9 +214,7 @@ function printSubBoard(subBoardCode, threadNumber, newOnly, scanPointer, mg, sb)
print
(
"
<script language=javascript type=text/javascript>
"
);
print
(
"
var threadHeader
"
+
threadNumber
+
"
= document.createElement('div');
"
);
print
(
"
threadHeader
"
+
threadNumber
+
"
.id = 'threadHeader
"
+
threadNumber
+
"
';
"
);
print
(
"
threadHeader
"
+
threadNumber
+
"
.onclick = function() { toggleVisibility('threadContainer
"
+
threadNumber
+
"
'); };
"
);
// print("threadHeader" + threadNumber + ".innerHTML += '<a name=" + header.number + "></a><a class=\"ulLink headingFont\" href=javascript:function(){toggleVisibility(\"threadContainer" + threadNumber + "\");}>" + html_encode(header.subject, false, false, false, false).replace(/'/g, "'") + "</a><br />Started by " + header.from + " on " + system.timestr(parseInt(header.when_written_time)) + "';");
print
(
"
threadHeader
"
+
threadNumber
+
"
.innerHTML += '<a name=
"
+
header
.
number
+
"
></a><div class=headingFont><span onmouseover=this.className=
\"
fakeUlLink
\"
onmouseout=this.className=
\"\"
>
"
+
html_encode
(
header
.
subject
,
false
,
false
,
false
,
false
).
replace
(
/'/g
,
"
'
"
)
+
"
</span></div><br />Started by
"
+
header
.
from
+
"
on
"
+
system
.
timestr
(
parseInt
(
header
.
when_written_time
))
+
"
';
"
);
print
(
"
threadHeader
"
+
threadNumber
+
"
.innerHTML += '<a name=
"
+
header
.
number
+
"
></a><a class=
\"
ulLink headingFont
\"
href=javascript:toggleVisibility(
\"
threadContainer
"
+
threadNumber
+
"
\"
)>
"
+
html_encode
(
header
.
subject
,
false
,
false
,
false
,
false
).
replace
(
/'/g
,
"
'
"
)
+
"
</a><br />Started by
"
+
header
.
from
+
"
on
"
+
system
.
timestr
(
parseInt
(
header
.
when_written_time
))
+
"
';
"
);
print
(
"
var threadContainer
"
+
threadNumber
+
"
= document.createElement('div');
"
);
print
(
"
threadContainer
"
+
threadNumber
+
"
.id = 'threadContainer
"
+
threadNumber
+
"
';
"
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment