Commit a2a5658e authored by flothoni's avatar flothoni

model.js; remember top setted by the user

link to #3697
parent 97a1e6c3
Pipeline #62006 failed with stages
in 22 seconds
...@@ -1198,12 +1198,14 @@ changeAlleleNotation: function(alleleNotation) { ...@@ -1198,12 +1198,14 @@ changeAlleleNotation: function(alleleNotation) {
* */ * */
displayTop: function (top) { displayTop: function (top) {
top = typeof top !== 'undefined' ? top : this.top; top = typeof top !== 'undefined' ? top : this.top;
this.top = top;
if (top < 0) if (top < 0)
top = 0 top = 0
if (top > this.countRealClones()) if (top > this.countRealClones())
top = this.countRealClones() top = this.countRealClones()
this.top = top;
var html_slider = document.getElementById('top_slider'); var html_slider = document.getElementById('top_slider');
if (html_slider !== null) { if (html_slider !== null) {
......
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