Skip to content

Commit

Permalink
Fixed bug in refresh on toggling options
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewCRMartin committed Dec 22, 2015
1 parent 86f7dfc commit 931d119
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 56 deletions.
13 changes: 7 additions & 6 deletions JSAV.js
Expand Up @@ -563,6 +563,7 @@ Read a checkbox and toggle the associated option, refreshing the display
@author
- 16.06.14 Original By: ACRM
- 17.06.14 Added consensus
- 22.12.15 Added labels
*/
function JSAV_toggleOption(divId, theButton, theOption)
{
Expand All @@ -575,7 +576,7 @@ function JSAV_toggleOption(divId, theButton, theOption)
}
else
{
JSAV_refresh(divId, gSequences[divId], options.sortable, options.selectable, options.border, gStartPos[divId]-1, gStopPos[divId]-1, options.highlight, options.dotify, options.nocolour, options.consensus);
JSAV_refresh(divId, gSequences[divId], options.sortable, options.selectable, options.border, gStartPos[divId]-1, gStopPos[divId]-1, options.highlight, options.dotify, options.nocolour, options.consensus, options.labels);
}
}

Expand Down Expand Up @@ -1798,11 +1799,11 @@ function JSAV_init()
}
catch(err)
{
gSequences = Array();
gOptions = Array();
gStartPos = Array();
gStopPos = Array();
gConsensus = Array();
gSequences = Array();
gOptions = Array();
gStartPos = Array();
gStopPos = Array();
gConsensus = Array();
gSequenceLengths = Array();
}
}
Expand Down
2 changes: 1 addition & 1 deletion JSAV.min.js

Large diffs are not rendered by default.

15 changes: 8 additions & 7 deletions out/JSAV.js.html
Expand Up @@ -590,6 +590,7 @@ <h1 class="page-title">Source: JSAV.js</h1>
@author
- 16.06.14 Original By: ACRM
- 17.06.14 Added consensus
- 22.12.15 Added labels
*/
function JSAV_toggleOption(divId, theButton, theOption)
{
Expand All @@ -602,7 +603,7 @@ <h1 class="page-title">Source: JSAV.js</h1>
}
else
{
JSAV_refresh(divId, gSequences[divId], options.sortable, options.selectable, options.border, gStartPos[divId]-1, gStopPos[divId]-1, options.highlight, options.dotify, options.nocolour, options.consensus);
JSAV_refresh(divId, gSequences[divId], options.sortable, options.selectable, options.border, gStartPos[divId]-1, gStopPos[divId]-1, options.highlight, options.dotify, options.nocolour, options.consensus, options.labels);
}
}

Expand Down Expand Up @@ -1825,11 +1826,11 @@ <h1 class="page-title">Source: JSAV.js</h1>
}
catch(err)
{
gSequences = Array();
gOptions = Array();
gStartPos = Array();
gStopPos = Array();
gConsensus = Array();
gSequences = Array();
gOptions = Array();
gStartPos = Array();
gStopPos = Array();
gConsensus = Array();
gSequenceLengths = Array();
}
}
Expand Down Expand Up @@ -2176,7 +2177,7 @@ <h2><a href="index.html">Index</a></h2><h3>Global</h3><ul><li><a href="global.ht
<br clear="both">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.2.2</a> on Tue Dec 22 2015 17:02:37 GMT-0000 (GMT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.2.2</a> on Tue Dec 22 2015 17:12:13 GMT-0000 (GMT)
</footer>

<script> prettyPrint(); </script>
Expand Down

0 comments on commit 931d119

Please sign in to comment.