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
e079c8b6
Commit
e079c8b6
authored
Oct 24, 2014
by
PkSM3
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
in dblclick, always ChangeToMeso
parent
e9b07172
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
22 deletions
+33
-22
enviroment.js
tinawebJS/js/enviroment.js
+1
-1
main.js
tinawebJS/js/main.js
+3
-2
methods.js
tinawebJS/js/methods.js
+29
-19
No files found.
tinawebJS/js/enviroment.js
View file @
e079c8b6
...
...
@@ -200,7 +200,7 @@ function EdgeWeightFilter(sliderDivID , type_attrb , type , criteria) {
var
steps
=
filterparams
[
"steps"
]
var
finalarray
=
filterparams
[
"finalarray"
]
pr
(
finalarray
)
//finished
$
(
sliderDivID
).
freshslider
({
range
:
true
,
...
...
tinawebJS/js/main.js
View file @
e079c8b6
...
...
@@ -410,8 +410,9 @@ function theListeners(){
});
}
if
(
!
is_empty
(
targeted
))
changeLevel
();
else
{
if
(
!
is_empty
(
targeted
))
{
graphTagCloudElem
(
targeted
);
}
else
{
if
(
!
is_empty
(
selections
)){
cancelSelection
(
false
);
}
...
...
tinawebJS/js/methods.js
View file @
e079c8b6
...
...
@@ -440,14 +440,20 @@ function LevelButtonDisable( TF ){
}
//tofix!
function
graphTagCloudElem
(
node_id
)
{
pr
(
"
\
tin graphTagCloudElem"
);
/**/
console
.
log
(
"in graphTagCloudElem, nodae_id: "
+
node_id
);
function
graphTagCloudElem
(
nodes
)
{
pr
(
"in graphTagCloudElem, nodae_id: "
+
nodes
);
cancelSelection
();
partialGraph
.
emptyGraph
();
var
ndsids
=
[]
if
(
!
$
.
isArray
(
nodes
))
ndsids
.
push
(
nodes
);
else
ndsids
=
nodes
;
var
voisinage
=
[]
var
vars
=
[]
node_id
=
nodes
[
0
]
if
(
Nodes
[
node_id
].
type
==
catSoc
)
{
voisinage
=
nodes1
;
vars
=
[
"social"
,
"a"
]
...
...
@@ -459,22 +465,26 @@ function graphTagCloudElem(node_id) {
}
var
finalnodes
=
{}
finalnodes
[
node_id
]
=
1
if
(
voisinage
[
node_id
])
{
for
(
var
j
in
voisinage
[
node_id
].
neighbours
)
{
id
=
voisinage
[
node_id
].
neighbours
[
j
];
s
=
node_id
;
t
=
id
;
edg1
=
Edges
[
s
+
";"
+
t
];
if
(
edg1
){
if
(
!
edg1
.
lock
)
finalnodes
[
t
]
=
1
;
}
edg2
=
Edges
[
t
+
";"
+
s
];
if
(
edg2
){
if
(
!
edg2
.
lock
)
finalnodes
[
t
]
=
1
;
}
}
}
for
(
var
i
in
ndsids
)
{
node_id
=
ndsids
[
i
]
finalnodes
[
node_id
]
=
1
if
(
voisinage
[
node_id
])
{
for
(
var
j
in
voisinage
[
node_id
].
neighbours
)
{
id
=
voisinage
[
node_id
].
neighbours
[
j
];
s
=
node_id
;
t
=
id
;
edg1
=
Edges
[
s
+
";"
+
t
];
if
(
edg1
){
if
(
!
edg1
.
lock
)
finalnodes
[
t
]
=
1
;
}
edg2
=
Edges
[
t
+
";"
+
s
];
if
(
edg2
){
if
(
!
edg2
.
lock
)
finalnodes
[
t
]
=
1
;
}
}
}
}
for
(
var
Nk
in
finalnodes
)
unHide
(
Nk
);
createEdgesForExistingNodes
(
vars
[
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