From b4789216a1793b2c07d191d4d588a220b542354b Mon Sep 17 00:00:00 2001 From: "neil%parkwaycc.co.uk" Date: Mon, 19 Jan 2004 09:43:27 +0000 Subject: [PATCH] Bug 135717 can't customize sidebar if all tabs are deleted r=varga sr=jag --- xpfe/components/sidebar/resources/customize.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xpfe/components/sidebar/resources/customize.js b/xpfe/components/sidebar/resources/customize.js index 3c827e4bcecf..e5ace28b698d 100644 --- a/xpfe/components/sidebar/resources/customize.js +++ b/xpfe/components/sidebar/resources/customize.js @@ -106,6 +106,8 @@ function save_initial_panels() { var tree = document.getElementById('current-panels'); if (!tree.view) { + // The tempate didn't build a treechildren, create one now + tree.appendChild(document.createElement('treechildren')); setTimeout(save_initial_panels, 0); } else { for (var i = 0; i < tree.view.rowCount; ++i) {