設定UIの初期化に一部失敗していた

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@5060 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2009-09-03 04:43:52 +00:00
parent 8199968833
commit 4b516b2c75

View File

@ -79,6 +79,8 @@ function initTabPane()
'loadLocationBarToChildTab-labels' 'loadLocationBarToChildTab-labels'
); );
gLoadLocationBarToChildTabScale.disabled = gLoadLocationBarToNewTabScale.value == 0;
var restrictionKey = 'browser.link.open_newwindow.restriction'; var restrictionKey = 'browser.link.open_newwindow.restriction';
var restriction = document.getElementById(restrictionKey); var restriction = document.getElementById(restrictionKey);
@ -211,6 +213,10 @@ function initAutoHidePane()
gAutoHideModeToggle = document.getElementById('extensions.treestyletab.tabbar.autoHide.mode.toggle'); gAutoHideModeToggle = document.getElementById('extensions.treestyletab.tabbar.autoHide.mode.toggle');
gTabbarTransparencyScale = document.getElementById('tabbarTransparency-scale'); gTabbarTransparencyScale = document.getElementById('tabbarTransparency-scale');
gTabbarTransparencyLabels = document.getElementById('tabbarTransparency-labels'); gTabbarTransparencyLabels = document.getElementById('tabbarTransparency-labels');
// for Firefox 3.0.x
gTabbarTransparencyScale.value = document.getElementById('extensions.treestyletab.tabbar.transparent.style').value;
updateAutoHideModeLabel(); updateAutoHideModeLabel();
onTabbarTransparencyScaleChange(); onTabbarTransparencyScaleChange();
} }