Skip to content

Commit

Permalink
hide/show track sublabels without redrawing track
Browse files Browse the repository at this point in the history
  • Loading branch information
bhofmei committed Jul 17, 2017
1 parent 18807d3 commit eccb2f2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion js/View/Track/NucleotideDensity.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ define([
'dojo/_base/declare',
'dojo/_base/array',
'dojo/_base/lang',
'dojo/query',
'dojo/_base/Color',
'dojo/colors',
'JBrowse/View/Track/Wiggle/Density',
Expand All @@ -14,6 +15,7 @@ function(
declare,
array,
lang,
query,
Color,
dojoColors,
WiggleDensity,
Expand Down Expand Up @@ -281,7 +283,8 @@ function(
checked: track.config.showLabels,
onClick: function(evt){
track.config.showLabels = this.checked;
track.browser.publish('/jbrowse/v1/c/tracks/replace', [track.config]);
query('#track_'+track.config.label+' div.track-sublabels').style('display',this.checked ? 'block' : 'none');

}
},
{
Expand Down
2 changes: 2 additions & 0 deletions release_notes.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Release notes
v1.0.4 - Jul 17, 2017
- show/hide track sublabels (the contexts) without redrawing entire track

v1.0.3 - Jul 14, 2017
- realigned the density values in the track view to be centered on the region computed for
Expand Down

0 comments on commit eccb2f2

Please sign in to comment.