reduce tabbox from the configuration dialog

This commit is contained in:
Piro / SHIMODA Hiroshi 2011-01-10 16:17:59 +09:00
parent 4eee5243f6
commit aeae03c58c
2 changed files with 71 additions and 108 deletions

View File

@ -161,8 +161,6 @@ function initTabPane()
'openGroupBookmark-check',
'openGroupBookmark-deck'
);
setUpTabbox('newTab-tabbox');
}
function onSyncGroupBookmarkUIToPref()
@ -419,18 +417,3 @@ RadioSet.prototype = {
return this.radio.value = aValue;
}
};
function setUpTabbox(aID)
{
var tabbox = document.getElementById(aID);
var pref = document.getElementById('extensions.treestyletab.preferences.'+aID+'.selectedIndex')
if (pref.value !== null) tabbox.selectedIndex = pref.value;
tabbox.setAttribute('onselect', 'onTabboxTabSelected("'+aID+'");');
}
function onTabboxTabSelected(aID)
{
var tabbox = document.getElementById(aID);
var pref = document.getElementById('extensions.treestyletab.preferences.'+aID+'.selectedIndex')
pref.valueFromPreferences = tabbox.selectedIndex;
}

View File

@ -277,9 +277,6 @@
<preference id="extensions.treestyletab.show.context-item-bookmarkTabSubtree"
name="extensions.treestyletab.show.context-item-bookmarkTabSubtree"
type="bool"/>
<preference id="extensions.treestyletab.preferences.newTab-tabbox.selectedIndex"
name="extensions.treestyletab.preferences.newTab-tabbox.selectedIndex"
type="int"/>
</preferences>
<vbox>
@ -349,16 +346,6 @@
type="bool"/>
</preferences>
<vbox>
<tabbox id="newTab-tabbox"
orient="vertical">
<tabs>
<tab label="&config.tabs.bookmark.tab;"/>
<tab label="&config.tabs.dragdrop.tab;"/>
</tabs>
<tabpanels>
<tabpanel orient="vertical">
<groupbox>
<caption label="&config.openGroupBookmark.caption;"/>
<hbox>
@ -409,8 +396,6 @@
</vbox>
</deck>
</groupbox>
</tabpanel>
<tabpanel orient="vertical">
<groupbox>
<caption label="&config.dropLinksOnTab.caption;"/>
<hbox>
@ -432,11 +417,6 @@
</vbox>
</deck>
</groupbox>
</tabpanel>
</tabpanels>
</tabbox>
</vbox>
</prefpane>