Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
c659dc06
Commit
c659dc06
authored
Sep 10, 2014
by
Marc Duez
Browse files
main.js : open database automatically
parent
e05e8b6c
Changes
2
Show whitespace changes
Inline
Side-by-side
browser/js/main.js
View file @
c659dc06
...
...
@@ -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
;
...
...
browser/js/model.js
View file @
c659dc06
...
...
@@ -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
)
}
...
...
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