Bug 135717 can't customize sidebar if all tabs are deleted r=varga sr=jag

This commit is contained in:
neil%parkwaycc.co.uk 2004-01-19 09:43:27 +00:00
parent 6bd439e10d
commit b4789216a1

View File

@ -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) {