Mise à jour terminée. Pour connaître les apports de la version 13.8.4 par rapport à notre ancienne version vous pouvez lire les "Release Notes" suivantes :
https://about.gitlab.com/releases/2021/02/11/security-release-gitlab-13-8-4-released/
https://about.gitlab.com/releases/2021/02/05/gitlab-13-8-3-released/

Commit 6396d87a authored by Mikaël Salson's avatar Mikaël Salson Committed by Mathieu Giraud

js/model.js: Don't reset everything when changing patient

Some preferences should not be reset when switching between patients.

It is better to keep the same germline selected between patients, as
well as the same color methods and the same top (to compare patients more
easily). Some preferences should also be kept for convenience (notation
and time format).
parent f6b1ab35
......@@ -48,7 +48,7 @@ function Model() {
this[f] = Model_loader.prototype[f]
}
this.reset();
this.setAll();
this.view = [];
this.checkBrowser();
this.germlineList = new GermlineList()
......@@ -111,7 +111,19 @@ Model.prototype = {
document.body.appendChild(this.tagSelector);
},
/**
* Set all the properties. Called in the constructor.
*/
setAll: function () {
this.reset();
this.system_selected = []
this.colorMethod = "Tag";
this.changeNotation("percent", false)
this.changeTimeFormat("name", false)
this.top = 50;
},
/**
* remove all elements from the previous .vidjil file but keep current user parameters and linked views
* */
......@@ -133,17 +145,12 @@ Model.prototype = {
this.t = 0; // Selected time/sample
this.tOther = 0; // Other (previously) selected time/sample
this.focus = -1;
this.system_selected = []
this.colorMethod = "Tag";
this.changeNotation("percent", false)
this.changeTimeFormat("name", false)
this.display_window = false
this.isPlaying = false;
this.mapID = {};
this.top = 50;
this.precision = 1;
this.germlineV = new Germline(this)
......
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