From 92957a946641eaf35c14240fb2a2f9517dbf17f3 Mon Sep 17 00:00:00 2001 From: piro Date: Sat, 20 Oct 2007 17:52:42 +0000 Subject: [PATCH] =?UTF-8?q?=E3=83=96=E3=83=83=E3=82=AF=E3=83=9E=E3=83=BC?= =?UTF-8?q?=E3=82=AF=E3=82=B0=E3=83=AB=E3=83=BC=E3=83=97=E3=81=AE=E9=96=8B?= =?UTF-8?q?=E3=81=8D=E6=96=B9=E3=82=92=E5=88=B6=E5=BE=A1=E3=81=99=E3=82=8B?= =?UTF-8?q?=E6=A9=9F=E8=83=BD=E3=82=92=E5=8A=A0=E3=81=88=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@1252 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/config.js | 21 ++++++ content/treestyletab/config.xul | 85 +++++++++++++--------- content/treestyletab/treestyletab.js | 40 ++++++++-- defaults/preferences/treestyletab.js | 2 + locale/en-US/treestyletab/treestyletab.dtd | 17 ++++- locale/ja/treestyletab/treestyletab.dtd | 17 ++++- 6 files changed, 136 insertions(+), 46 deletions(-) create mode 100644 content/treestyletab/config.js diff --git a/content/treestyletab/config.js b/content/treestyletab/config.js new file mode 100644 index 00000000..8f44291d --- /dev/null +++ b/content/treestyletab/config.js @@ -0,0 +1,21 @@ +var gGroupBookmarkRadio, gGroupBookmarkTreeCheck, gGroupBookmarkReplaceCheck; + +function initGroupBookmarkRadio() +{ + gGroupBookmarkRadio = document.getElementById('openGroupBookmarkAsTabSubTree-radiogroup'); + gGroupBookmarkTree = document.getElementById('extensions.treestyletab.openGroupBookmarkAsTabSubTree'); + gGroupBookmarkReplace = document.getElementById('browser.tabs.loadFolderAndReplace'); + + gGroupBookmarkRadio.value = + gGroupBookmarkTree.value && !gGroupBookmarkReplace.value ? 'subtree' : + !gGroupBookmarkTree.value && !gGroupBookmarkReplace.value ? 'flat' : + 'replace'; +} + +function onChangeGroupBookmarkRadio() +{ + gGroupBookmarkTree.value = gGroupBookmarkRadio.value == 'subtree'; + gGroupBookmarkReplace.value = gGroupBookmarkRadio.value == 'replace'; +} + + diff --git a/content/treestyletab/config.xul b/content/treestyletab/config.xul index 3d21b303..45423bb4 100644 --- a/content/treestyletab/config.xul +++ b/content/treestyletab/config.xul @@ -7,9 +7,10 @@ + onload="sizeToContent(); initGroupBookmarkRadio();"> - + + + + + + + + + + + + + - - - - - - + + + + - - - - - - + + + + + + + + + + + + - +