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. 2
      pyweb/mumble/media/js/channelviewer.js

2
pyweb/mumble/media/js/channelviewer.js

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

Loading…
Cancel
Save