Commit 9b60cf25 authored by Mikaël Salson's avatar Mikaël Salson

Merge branch 'feature-c/4303-waiting-for-server-reply_v2' into 'dev'

Resolve "Waiting for server reply / still waiting alors que le .vidjil est chargé"

Closes #4303

See merge request !728
parents 6ec207d2 d6e44395
Pipeline #151112 passed with stages
in 19 minutes and 7 seconds
......@@ -47,12 +47,17 @@ Shortcut.prototype = {
this.system_shortcuts = {}
for (var system in germline_data.systems){
var keycode = germline_data.systems[system].shortcut.toUpperCase().charCodeAt(0)
if (typeof this.system_shortcuts[keycode] == "undefined")
this.system_shortcuts[keycode] = []
this.system_shortcuts[keycode].push(system)
if (germline_data.systems[system].shortcut != undefined){ // at init/load, some data are not present
var keycode = germline_data.systems[system].shortcut.toUpperCase().charCodeAt(0)
if (typeof this.system_shortcuts[keycode] == "undefined")
this.system_shortcuts[keycode] = []
this.system_shortcuts[keycode].push(system)
} else {
console.default.log("Shortcuts; system undefined: " + system)
}
}
document.onkeydown = function (e) { self.checkKey(e); }
......
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