set initial state of tabs: subtree can be collapsed

This commit is contained in:
SHIMODA Hiroshi 2010-11-30 16:45:03 +09:00
parent 9b51543de5
commit e88f38f95d

View File

@ -796,6 +796,7 @@ TreeStyleTabBrowser.prototype = {
var id = this.getTabValue(aTab, this.kID) || this.makeNewId(); var id = this.getTabValue(aTab, this.kID) || this.makeNewId();
aTab.setAttribute(this.kID, id); aTab.setAttribute(this.kID, id);
aTab.setAttribute(this.kSUBTREE_COLLAPSED, true); aTab.setAttribute(this.kSUBTREE_COLLAPSED, true);
aTab.setAttribute(this.kALLOW_COLLAPSE, true);
window.setTimeout(function(aSelf) { window.setTimeout(function(aSelf) {
if (!aSelf.getTabValue(aTab, aSelf.kID)) { if (!aSelf.getTabValue(aTab, aSelf.kID)) {
aSelf.setTabValue(aTab, aSelf.kID, id); aSelf.setTabValue(aTab, aSelf.kID, id);