Ctrl-Tabで折りたたまれたタブにフォーカスするオプションをデフォルトでは隠すようにして、「詳細」のタブの数を減らした

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@5014 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2009-08-26 10:24:54 +00:00
parent f3026cad08
commit 5287ab43b0
2 changed files with 14 additions and 6 deletions

View File

@ -234,6 +234,18 @@ function onTabbarTransparencyScaleChange()
}
function initAdvancedPane()
{
updateCloseRootBehaviorCheck();
var focusMode = document.getElementById('extensions.treestyletab.focusMode-check');
var focusModePref = document.getElementById('extensions.treestyletab.focusMode');
if (focusModePref.value != focusModePref.defaultValue)
focusMode.removeAttribute('collapsed');
else
focusMode.setAttribute('collapsed', true);
}
function updateCloseRootBehaviorCheck()
{
var closeParentBehavior = document.getElementById('extensions.treestyletab.closeParentBehavior-radiogroup').value;

View File

@ -614,7 +614,7 @@
</prefpane>
<prefpane id="prefpane-advanced" label="&config.tabs.advanced;"
onpaneload="updateCloseRootBehaviorCheck();">
onpaneload="initAdvancedPane();">
<preferences>
<preference id="extensions.treestyletab.autoCollapseExpandSubTreeOnSelect"
name="extensions.treestyletab.autoCollapseExpandSubTreeOnSelect"
@ -654,7 +654,6 @@
<tabbox orient="vertical">
<tabs orient="horizontal">
<tab label="&config.tabs.advanced.focus;"/>
<tab label="&config.tabs.advanced.tree;"/>
<tab label="&config.tabs.advanced.misc;"/>
</tabs>
@ -675,9 +674,6 @@
label="&config.focusMode;"
onsyncfrompreference="return document.getElementById('extensions.treestyletab.focusMode').value == 0;"
onsynctopreference="return document.getElementById('extensions.treestyletab.focusMode-check').checked ? 0 : 1 ;"/>
</tabpanel>
<tabpanel orient="vertical">
<checkbox id="extensions.treestyletab.collapseExpandSubTree.dblclick-check"
preference="extensions.treestyletab.collapseExpandSubTree.dblclick"
label="&config.collapseExpandSubTree.dblclick;"/>
@ -711,7 +707,7 @@
<caption label="&config.insertNewChildAt.caption;"/>
<radiogroup id="extensions.treestyletab.insertNewChildAt-radiogroup"
preference="extensions.treestyletab.insertNewChildAt"
orient="vertical">
orient="horizontal">
<radio value="0" label="&config.insertNewChildAt.first;"/>
<radio value="1" label="&config.insertNewChildAt.last;"/>
</radiogroup>