Commit 72f67b3c authored by Mathieu Giraud's avatar Mathieu Giraud
Browse files

js/builder.js: calls also switch_visu2() when there are several samples

In particular, this should be called when one opens a multi-sample file
after a one-sample file.
parent ecf7df0b
......@@ -64,14 +64,17 @@ Builder.prototype = {
this.build_clusterSelector()
this.initTag();
// if (this.m.samples.order.length == 1) this.resizeGraph(0)
if (this.m.samples.order.length == 1)
// One sample, two scatterplots
setTimeout(function() {
switch_visu2('scatterplot');
document.getElementById("visu2_mode_sp").checked = true;
})
else this.resizeGraph(50)
else
// Several samples, one graph and one scatterplot
setTimeout(function() {
switch_visu2('graph');
})
} catch (err) {
sendErrorToDb(err, this.db);
}
......
Supports Markdown
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