Browse Source

defer setting the auto refresh until after the channel viewer has been rendered

Natenom/support-murmur-13-1446181288462
Michael Ziegler 13 years ago
parent
commit
8671ab76d8
  1. 8
      pyweb/mumble/media/js/channelviewer.js

8
pyweb/mumble/media/js/channelviewer.js

@ -154,9 +154,11 @@ Ext.ux.MumbleChannelViewer = function( config ){
}); });
this.autoRefreshId = 0; this.autoRefreshId = 0;
this.setAutoRefresh();
if( this.refreshInterval == 0 )
this.refresh();
this.on("afterrender", function(){
this.setAutoRefresh();
if( this.refreshInterval == 0 )
this.refresh();
}, this);
} }
Ext.extend( Ext.ux.MumbleChannelViewer, Ext.tree.TreePanel, { Ext.extend( Ext.ux.MumbleChannelViewer, Ext.tree.TreePanel, {

Loading…
Cancel
Save