Avoid creating multiple About tabs upon comet reconnect

This commit is contained in:
Andreas Öman 2009-07-15 19:05:25 +00:00
parent 891ed4eb1a
commit 90b6c14906

View file

@ -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();
}