Commit ae3174b5 authored by aurelBZH's avatar aurelBZH Committed by Mathieu Giraud

js/model.js, index.html: settings to see/hide the alleles

parent fabd48bb
......@@ -220,6 +220,12 @@
<div class="buttonSelector" onclick="m.changeCloneNotation('short_sequence', true)"><input id="menuCloneNotSeqShort" type="radio" name="show_name" value="short_sequence" checked /><label for="menuCloneNotSeqShort">sequence (when short)</label></div>
<div class="buttonSelector" onclick="m.changeCloneNotation('full_sequence', true)"><input id="menuCloneNotSeq" type="radio" name="show_name" value="full_sequence" /><label for="menuCloneNotSeq">sequence (always)</label></div>
</div>
<div class="menu_box">
allele names</br>
<div class="buttonSelector" onclick="m.changeAlleleNotation('always', true)"><input id="menualwaysalleleNot" type="radio" name="show_name" value="always" /><label for="menualwaysalleleNot">always show allele</label></div>
<div class="buttonSelector" onclick="m.changeAlleleNotation('when_not_01', true)"><input id="menuAlleleNot1" type="radio" name="show_name" value="when_not_01" checked /><label for="menuCloneNotSeqShort"> show allele when not 01</label></div>
<div class="buttonSelector" onclick="m.changeAlleleNotation('never', true)"><input id="menuNeverAllele" type="radio" name="show_name" value="never" /><label for="menuCloneNotSeq">never show allele</label></div>
</div>
<div class="menu_box devel-mode">
......
......@@ -169,6 +169,7 @@ Model.prototype = {
this.analysisFileName = '';
this.db_key = "" //for file who came from the database
this.cloneNotationType="short_sequence";
this.alleleNotation = "never";
this.norm = false;
this.normalization = {
......@@ -284,6 +285,11 @@ changeCloneNotation: function(cloneNotationType) {
this.update();
},
changeAlleleNotation: function(alleleNotation) {
this.alleleNotation = alleleNotation;
this.update();
},
/**
* compute data_info who contain some meta-data for each "data"
......
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