Attention une mise à jour du serveur va être effectuée le lundi 17 mai entre 13h et 13h30. Cette mise à jour va générer une interruption du service de quelques minutes.

Commit 2a23c579 authored by Ryan Herbert's avatar Ryan Herbert

database.js, model_loader.js loadGermline before initClones

When loading a vidjil file into the browser, the germline was not
initialised when initialising the clones. Therefore no system would be
selected by default.
parent 50578219
......@@ -319,8 +319,8 @@ Database.prototype = {
//the json result look like a .vidjil file so we load it
if (res.reads){
this.m.parseJsonData(result, 100)
this.m.initClones()
this.m.loadGermline();
this.m.initClones()
this.load_analysis(args)
this.last_file = args
this.close()
......
......@@ -138,9 +138,9 @@ Model_loader.prototype = {
oFReader.readAsText(oFile);
oFReader.onload = function (oFREvent) {
self.parseJsonData(oFREvent.target.result, limit);
self.initClones()
self.loadGermline()
.loadAnalysis(analysis)
.initClones()
self.loadAnalysis(analysis)
.update_selected_system()
self.dataFileName = document.getElementById(id)
.files[0].name;
......
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