Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
9c3a8ba3
Commit
9c3a8ba3
authored
Oct 01, 2014
by
Marc
Browse files
main.js : try to load data/analysis from get var first
parent
9a8c272d
Changes
1
Hide whitespace changes
Inline
Side-by-side
browser/js/main.js
View file @
9c3a8ba3
...
...
@@ -95,11 +95,24 @@ var stats = new Stats(sp);
*/
m
.
addSegment
(
segment
);
/*
Connections
/*
*
* */
if
(
config
.
use_database
){
var
db
=
new
Database
(
"
plop!
"
,
DB_ADDRESS
);
if
(
config
.
use_database
)
var
db
=
new
Database
(
"
plop!
"
,
DB_ADDRESS
);
if
(
location
.
search
!=
''
){
var
tmp
=
location
.
search
.
substring
(
1
).
split
(
'
&
'
)
for
(
var
i
=
0
;
i
<
tmp
.
length
;
i
++
){
var
tmp2
=
tmp
[
i
].
split
(
'
=
'
)
if
(
tmp2
[
0
]
==
'
data
'
){
m
.
loadDataUrl
(
tmp2
[
1
])
myConsole
.
flash
(
"
load data from url :
"
+
tmp2
[
1
])
}
if
(
tmp2
[
0
]
==
'
analysis
'
){
m
.
loadAnalysisUrl
(
tmp2
[
1
])
}
}
}
else
if
(
config
.
use_database
){
//wait 1sec to check ssl
setTimeout
(
function
()
{
db
.
call
(
"
patient/index.html
"
)},
1000
);
}
else
{
...
...
Write
Preview
Supports
Markdown
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