Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
clinicaltrials
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
david Chavalarias
clinicaltrials
Commits
45866596
Commit
45866596
authored
Jul 19, 2017
by
Romain Loth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor: fix HTML update in selection tabs
parent
c4e0df50
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
8 deletions
+14
-8
explorerjs.html
explorerjs.html
+2
-6
methods.js
twmain/methods.js
+12
-2
No files found.
explorerjs.html
View file @
45866596
...
@@ -447,18 +447,14 @@
...
@@ -447,18 +447,14 @@
<ul
class=
'etabs'
>
<ul
class=
'etabs'
>
<!-- for related elements from the combined graph (eg soc => sem) -->
<!-- for related elements from the combined graph (eg soc => sem) -->
<li
id=
"taboppos"
class=
'tab'
><a
href=
"#
tabs1
"
>
Opposite-Neighbors
</a></li>
<li
id=
"taboppos"
class=
'tab'
><a
href=
"#
oppositeNodes
"
>
Opposite-Neighbors
</a></li>
<!-- for neighbors within this graph -->
<!-- for neighbors within this graph -->
<li
id=
"tabneigh"
class=
'tab'
><a
href=
"#
tabs2
"
>
Related
</a></li>
<li
id=
"tabneigh"
class=
'tab'
><a
href=
"#
sameNodes
"
>
Related
</a></li>
</ul>
</ul>
<div
class=
'panel-container'
>
<div
class=
'panel-container'
>
<div
id=
"tabs1"
>
<div
id=
"oppositeNodes"
></div>
<div
id=
"oppositeNodes"
></div>
</div>
<div
id=
"tabs2"
>
<div
id=
"sameNodes"
></div>
<div
id=
"sameNodes"
></div>
</div>
</div>
</div>
</div>
</div>
...
...
twmain/methods.js
View file @
45866596
...
@@ -507,15 +507,25 @@ function updateRelatedNodesPanel( sels , same, oppos ) {
...
@@ -507,15 +507,25 @@ function updateRelatedNodesPanel( sels , same, oppos ) {
informationDIV
+=
htmlfied_nodesatts
(
sels
).
join
(
"<br>
\n
"
)
informationDIV
+=
htmlfied_nodesatts
(
sels
).
join
(
"<br>
\n
"
)
informationDIV
+=
'</ul><br>'
;
informationDIV
+=
'</ul><br>'
;
//
using the readmore.js (NB readmore and easytabs are not easy to harmonize)
//
selection panels and tabs
$
(
"#lefttopbox"
).
show
();
$
(
"#lefttopbox"
).
show
();
$
(
"#selection-tabs-contnr"
).
show
();
$
(
"#selection-tabs-contnr"
).
show
();
$
(
"#names"
).
html
(
namesDIV
).
readmore
({
maxHeight
:
100
});
$
(
"#names"
).
html
(
namesDIV
).
readmore
({
maxHeight
:
100
});
$
(
"#information"
).
html
(
informationDIV
);
// easytab + readmore needs "click" on active tab to update HTML correctly
let
tabAnchors
=
document
.
querySelectorAll
(
'.etabs > li > a'
)
for
(
var
i
=
0
;
i
<
tabAnchors
.
length
;
i
++
)
{
if
(
tabAnchors
[
i
]
&&
tabAnchors
[
i
].
classList
.
contains
(
"active"
))
$
(
'#selection-tabs-contnr'
).
easytabs
(
'select'
,
tabAnchors
[
i
].
getAttribute
(
'href'
)
);
}
if
(
oppos
.
length
>
0
)
{
if
(
oppos
.
length
>
0
)
{
$
(
"#oppositeNodes"
).
html
(
alterNodesDIV
).
readmore
({
maxHeight
:
200
});
$
(
"#oppositeNodes"
).
html
(
alterNodesDIV
).
readmore
({
maxHeight
:
200
});
}
}
$
(
"#sameNodes"
).
html
(
sameNodesDIV
).
readmore
({
maxHeight
:
200
});
$
(
"#sameNodes"
).
html
(
sameNodesDIV
).
readmore
({
maxHeight
:
200
});
$
(
"#information"
).
html
(
informationDIV
);
if
(
TW
.
conf
.
getRelatedDocs
)
{
if
(
TW
.
conf
.
getRelatedDocs
)
{
let
rdTabCount
=
0
let
rdTabCount
=
0
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment