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
463bdd52
Commit
463bdd52
authored
Apr 14, 2017
by
Romain Loth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
saveModal fix
parent
1eb80e68
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
11 deletions
+11
-11
explorerjs.html
explorerjs.html
+1
-1
Tinaweb.js
tinawebJS/Tinaweb.js
+3
-3
methods.js
tinawebJS/methods.js
+7
-7
No files found.
explorerjs.html
View file @
463bdd52
...
...
@@ -336,7 +336,7 @@
</li>
<li>
<a
href=
"#
"
id=
"saveAs"
class=
"zoombarbuttons
"
>
<a
href=
"#
savemodal"
id=
"saveAs"
class=
"zoombarbuttons"
data-toggle=
"modal
"
>
<img
style=
"width:28px"
title=
"Save As..."
src=
"libs/img2/save.png"
></img>
</a>
</li>
...
...
tinawebJS/Tinaweb.js
View file @
463bdd52
...
...
@@ -603,14 +603,14 @@ TinaWebJS = function ( sigmacanvas ) {
$
(
"#tips"
).
html
(
getTips
());
// a bit costly, TODO make conditional or deprecated
// showMeSomeLabels(6);
// updateDownNodeEvent(false);
$
(
"#saveAs"
).
click
(
function
()
{
$
(
'#savemodal'
).
modal
(
'show'
);
});
// #saveAs => toggle #savemodal initialized in html + bootstrap-native
this
.
SearchListeners
();
...
...
tinawebJS/methods.js
View file @
463bdd52
...
...
@@ -781,9 +781,9 @@ function pushFilterValue(filtername,arg){
function
saveGraph
()
{
size
=
getByID
(
"check_size"
).
checked
color
=
getByID
(
"check_color"
).
checked
atts
=
{
"size"
:
size
,
"color"
:
color
}
let
size
=
getByID
(
"check_size"
).
checked
let
color
=
getByID
(
"check_color"
).
checked
let
atts
=
{
"size"
:
size
,
"color"
:
color
}
if
(
getByID
(
"fullgraph"
).
checked
)
{
saveGEXF
(
getnodes
()
,
getedges
()
,
atts
);
...
...
@@ -797,7 +797,7 @@ function saveGraph() {
}
function
saveGEXF
(
nodes
,
edges
,
atts
){
gexf
=
'<?xml version="1.0" encoding="UTF-8"?>
\
n'
;
let
gexf
=
'<?xml version="1.0" encoding="UTF-8"?>
\
n'
;
gexf
+=
'<gexf xmlns="http://www.gexf.net/1.1draft" xmlns:viz="http://www.gephi.org/gexf/viz" version="1.1">
\
n'
;
gexf
+=
'<graph defaultedgetype="undirected" type="static">
\
n'
;
gexf
+=
'<attributes class="node" type="static">
\
n'
;
...
...
@@ -829,7 +829,7 @@ function saveGEXF(nodes,edges,atts){
}
gexf
+=
"
\n
</nodes>
\n
"
;
gexf
+=
"<edges>
\n
"
;
cont
=
1
;
let
cont
=
1
;
for
(
var
e
in
edges
){
gexf
+=
'<edge id="'
+
cont
+
'" source="'
+
edges
[
e
].
source
.
id
+
'" target="'
+
edges
[
e
].
target
.
id
+
'" weight="'
+
edges
[
e
].
weight
+
'">
\
n'
;
gexf
+=
'<attvalues> <attvalue for="6" value="'
+
edges
[
e
].
label
+
'"/></attvalues>'
;
...
...
@@ -837,8 +837,8 @@ function saveGEXF(nodes,edges,atts){
cont
++
;
}
gexf
+=
"
\n
</edges>
\n
</graph>
\n
</gexf>"
;
uriContent
=
"data:application/octet-stream,"
+
encodeURIComponent
(
gexf
);
newWindow
=
window
.
open
(
uriContent
,
'neuesDokument'
);
let
uriContent
=
"data:application/octet-stream,"
+
encodeURIComponent
(
gexf
);
let
newWindow
=
window
.
open
(
uriContent
,
'neuesDokument'
);
}
function
saveGraphIMG
(){
...
...
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