Skip to content

Commit

Permalink
hoist some of the initial faceted tracksel rendering earlier to be ea…
Browse files Browse the repository at this point in the history
…rlier in startup
  • Loading branch information
rbuels committed May 17, 2012
1 parent eea4eef commit 32007cb
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions js/View/TrackList/Faceted.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,13 @@ dojo.declare( 'JBrowse.View.TrackList.Faceted', null,
dojo.subscribe( '/jbrowse/v1/c/tracks/hide',
dojo.hitch( this, 'setTracksInactive' ));

this.renderInitial();

// once its data is loaded and ready
dojo.connect( this.trackDataStore, 'onReady', this, function() {

// render our controls and so forth
this.render();
this.renderSelectors();

// connect events so that when a grid row is selected or
// deselected (with the checkbox), publish a message
Expand Down Expand Up @@ -131,7 +133,7 @@ dojo.declare( 'JBrowse.View.TrackList.Faceted', null,
return this._ifNotSuppressed( flag, function() { this._suppress( flag, method );});
},

render: function() {
renderInitial: function() {
this.containerElem = dojo.create( 'div', {
id: 'faceted_tracksel',
style: {
Expand All @@ -150,13 +152,12 @@ dojo.declare( 'JBrowse.View.TrackList.Faceted', null,
},
this.containerElem
);


this.mainContainer = new dijit.layout.BorderContainer(
{ design: 'headline', gutters: false },
dojo.create('div',{ className: 'mainContainer' }, this.containerElem)
);


this.topPane = new dijit.layout.ContentPane(
{ region: 'top',
id: "faceted_tracksel_top",
Expand Down Expand Up @@ -196,6 +197,9 @@ dojo.declare( 'JBrowse.View.TrackList.Faceted', null,
dojo.query( '.faceted_tracksel_on_off' )
.onclick( dojo.hitch( this, 'toggle' ));

},
renderSelectors: function() {

// make our main components
var textFilterContainer = this.renderTextFilter();
var facetContainer = this.renderFacetSelectors();
Expand Down

0 comments on commit 32007cb

Please sign in to comment.