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
f0f46d05
Commit
f0f46d05
authored
Jul 19, 2017
by
Romain Loth
Browse files
Options
Browse Files
Download
Plain Diff
Merge commit '48df7d5' (minor fixes for tina search labels and selection tabs)
parents
43d8dcfd
f20524d4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
9 deletions
+22
-9
explorerjs.html
explorerjs.html
+2
-6
enviroment.js
twmain/enviroment.js
+8
-1
methods.js
twmain/methods.js
+12
-2
No files found.
explorerjs.html
View file @
f0f46d05
...
...
@@ -447,18 +447,14 @@
<ul
class=
'etabs'
>
<!-- 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 -->
<li
id=
"tabneigh"
class=
'tab'
><a
href=
"#
tabs2
"
>
Related
</a></li>
<li
id=
"tabneigh"
class=
'tab'
><a
href=
"#
sameNodes
"
>
Related
</a></li>
</ul>
<div
class=
'panel-container'
>
<div
id=
"tabs1"
>
<div
id=
"oppositeNodes"
></div>
</div>
<div
id=
"tabs2"
>
<div
id=
"sameNodes"
></div>
</div>
</div>
</div>
...
...
twmain/enviroment.js
View file @
f0f46d05
...
...
@@ -449,7 +449,7 @@ function changeType(optionaltypeFlag) {
// 7 - add the relations
let
newEdges
=
{}
let
allNodes
=
TW
.
partialGraph
let
allNodes
=
{}
if
(
typeFlag
!=
"all"
)
allNodes
=
newNodes
else
allNodes
=
Object
.
assign
(
newNodes
,
preservedNodes
)
for
(
var
srcnid
in
allNodes
)
{
...
...
@@ -501,6 +501,13 @@ function changeType(optionaltypeFlag) {
console
.
log
(
"selection transitive projection from"
,
sourceNids
,
"to"
,
newselsArr
)
}
// update search labels
TW
.
labels
.
splice
(
0
,
TW
.
labels
.
length
)
for
(
var
nid
in
allNodes
)
{
updateSearchLabels
(
nid
,
allNodes
[
nid
].
label
,
allNodes
[
nid
].
type
);
}
// update the gui (POSS could be handled by TW.pushGUIState)
TW
.
gui
.
handpickedcolor
=
false
changeGraphAppearanceByFacets
(
getActivetypesNames
()
)
...
...
twmain/methods.js
View file @
f0f46d05
...
...
@@ -507,15 +507,25 @@ function updateRelatedNodesPanel( sels , same, oppos ) {
informationDIV
+=
htmlfied_nodesatts
(
sels
).
join
(
"<br>
\n
"
)
informationDIV
+=
'</ul><br>'
;
//
using the readmore.js (NB readmore and easytabs are not easy to harmonize)
//
selection panels and tabs
$
(
"#lefttopbox"
).
show
();
$
(
"#selection-tabs-contnr"
).
show
();
$
(
"#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
)
{
$
(
"#oppositeNodes"
).
html
(
alterNodesDIV
).
readmore
({
maxHeight
:
200
});
}
$
(
"#sameNodes"
).
html
(
sameNodesDIV
).
readmore
({
maxHeight
:
200
});
$
(
"#information"
).
html
(
informationDIV
);
if
(
TW
.
conf
.
getRelatedDocs
)
{
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