From 90b6c1490625b44760403556bf2148d4156ef886 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96man?= Date: Wed, 15 Jul 2009 19:05:25 +0000 Subject: [PATCH] Avoid creating multiple About tabs upon comet reconnect --- src/webui/static/app/tvheadend.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/webui/static/app/tvheadend.js b/src/webui/static/app/tvheadend.js index 4a7bfc46..7b98b36e 100644 --- a/src/webui/static/app/tvheadend.js +++ b/src/webui/static/app/tvheadend.js @@ -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(); }