Avoid creating multiple About tabs upon comet reconnect
This commit is contained in:
parent
891ed4eb1a
commit
90b6c14906
1 changed files with 9 additions and 9 deletions
|
@ -57,15 +57,15 @@ function accessUpdate(o) {
|
|||
tvheadend.rootTabPanel.add(tvheadend.confpanel);
|
||||
}
|
||||
|
||||
tvheadend.aboutPanel = new Ext.Panel({
|
||||
border: false,
|
||||
layout:'fit',
|
||||
title:'About',
|
||||
autoLoad: 'about.html'
|
||||
});
|
||||
|
||||
tvheadend.rootTabPanel.add(tvheadend.aboutPanel);
|
||||
|
||||
if(tvheadend.aboutPanel == null) {
|
||||
tvheadend.aboutPanel = new Ext.Panel({
|
||||
border: false,
|
||||
layout:'fit',
|
||||
title:'About',
|
||||
autoLoad: 'about.html'
|
||||
});
|
||||
tvheadend.rootTabPanel.add(tvheadend.aboutPanel);
|
||||
}
|
||||
|
||||
tvheadend.rootTabPanel.doLayout();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue