From 625aa8a334bd471b953816fa2db91c35abadaf26 Mon Sep 17 00:00:00 2001 From: piro Date: Tue, 13 Nov 2007 04:12:08 +0000 Subject: [PATCH] =?UTF-8?q?Tab=20Mix=20Plus=E3=81=A7=E3=83=96=E3=83=83?= =?UTF-8?q?=E3=82=AF=E3=83=9E=E3=83=BC=E3=82=AF=E3=82=B0=E3=83=AB=E3=83=BC?= =?UTF-8?q?=E3=83=97=E3=82=92=E9=96=8B=E3=81=84=E3=81=9F=E6=99=82=E3=81=AB?= =?UTF-8?q?=E3=83=84=E3=83=AA=E3=83=BC=E3=81=8C=E5=A3=8A=E3=82=8C=E3=82=8B?= =?UTF-8?q?=E5=95=8F=E9=A1=8C=E3=82=92=E4=BF=AE=E6=AD=A3?= 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@1572 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/hacks.js | 27 ++++++++++++++++++++++++--- content/treestyletab/treestyletab.js | 11 +++++++++++ 2 files changed, 35 insertions(+), 3 deletions(-) diff --git a/content/treestyletab/hacks.js b/content/treestyletab/hacks.js index 912e647b..3a76ffa5 100644 --- a/content/treestyletab/hacks.js +++ b/content/treestyletab/hacks.js @@ -258,11 +258,32 @@ TreeStyleTabService.overrideExtensions = function() { eval('TMP_Bookmark.openGroup = '+ TMP_Bookmark.openGroup.toSource().replace( - /(tabToSelect = aTab;)/, - '$1 TreeStyleTabService.readyToOpenChildTab(tabToSelect, true);' + /(var tabToSelect = null;)/, + <> + ).replace( + 'index = prevTab._tPos + 1;', + <> + ).replace( + /(prevTab = aTab;)/, + <> ).replace( /(browser.mTabContainer.nextTab)/, - 'TreeStyleTabService.stopToOpenChildTab(tabToSelect); $1' + <> ) ); diff --git a/content/treestyletab/treestyletab.js b/content/treestyletab/treestyletab.js index 739531b1..885c0865 100644 --- a/content/treestyletab/treestyletab.js +++ b/content/treestyletab/treestyletab.js @@ -1854,6 +1854,17 @@ catch(e) { ).singleNodeValue; }, + getRootTab : function(aTab) + { + var parent = aTab; + var root = aTab; + while (parent = this.getParentTab(parent)) + { + root = parent; + } + return root; + }, + getNextSiblingTab : function(aTab) { if (!aTab) return null;