Commit 3098501e authored by Marc Duez's avatar Marc Duez
Browse files
parent e3909874
......@@ -91,6 +91,8 @@ m.addSegment(segment);
if (location.search != ''){
var tmp = location.search.substring(1).split('&')
var patient = -1
var config = -1
for (var i=0; i<tmp.length; i++){
var tmp2 = tmp[i].split('=')
if (tmp2[0] == 'data'){
......@@ -100,6 +102,12 @@ if (location.search != ''){
if (tmp2[0] == 'analysis'){
m.loadAnalysisUrl(tmp2[1])
}
if (tmp2[0] == 'patient') patient = tmp2[1]
if (tmp2[0] == 'config') config = tmp2[1]
if (patient != "-1" && config != "-1"){
//wait 1sec to check ssl
setTimeout(function () { db.load_data( {"patient" : patient , "config" : config } , "") }, 1000);
}
}
}else if (config.use_database){
//wait 1sec to check ssl
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment