Commit c659dc06 authored by Marc Duez's avatar Marc Duez
Browse files

main.js : open database automatically

parent e05e8b6c
......@@ -107,7 +107,13 @@ m.addSegment(segment);
/* Connections
*
* */
var db = new Database("plop!", DB_ADDRESS);
if (config.use_database){
var db = new Database("plop!", DB_ADDRESS);
//wait 1sec to check ssl
setTimeout(function () { db.call("patient/index.html")}, 1000);
}else{
popupMsg(msg.welcome)
}
/*Statements and functions which allows to active the ALT key, and the movement of the SVG frame*/
document.onkeydown = keydown;
......
......@@ -1973,11 +1973,9 @@ Model.prototype = {
}
//TODO check version
if (this.browser == "Chrome" ||
this.browser == "Firefox" ||
this.browser == "Safari") {
popupMsg(msg.welcome)
} else {
if (this.browser != "Chrome" &&
this.browser != "Firefox" &&
this.browser != "Safari") {
popupMsg(msg.browser_error)
}
......
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