From 9357c2d2b85f00a0d64830366a0fc109c1f0d098 Mon Sep 17 00:00:00 2001 From: piro Date: Fri, 30 Apr 2010 04:49:51 +0000 Subject: [PATCH] =?UTF-8?q?Weave=E3=81=AB=E3=82=88=E3=81=A3=E3=81=A6?= =?UTF-8?q?=E3=80=8C=E3=82=BF=E3=83=96=E3=81=AE=E4=B8=80=E8=A6=A7=E3=80=8D?= =?UTF-8?q?=E3=83=9D=E3=83=83=E3=83=97=E3=82=A2=E3=83=83=E3=83=97=E3=81=AE?= =?UTF-8?q?=E5=86=85=E5=AE=B9=E3=81=8C=E6=94=B9=E5=A4=89=E3=81=95=E3=82=8C?= =?UTF-8?q?=E3=81=A6=E3=81=84=E3=82=8B=E6=99=82=E3=81=AB=E3=82=A4=E3=83=B3?= =?UTF-8?q?=E3=83=87=E3=83=B3=E3=83=88=E3=81=8C=E5=B4=A9=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@6628 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/treestyletab.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/content/treestyletab/treestyletab.js b/content/treestyletab/treestyletab.js index 6a9ce5b2..0a72ad92 100644 --- a/content/treestyletab/treestyletab.js +++ b/content/treestyletab/treestyletab.js @@ -1209,6 +1209,18 @@ catch(e) { if (!this.getTreePref('enableSubtreeIndent.allTabsPopup')) return; var items = Array.slice(aEvent.originalTarget.childNodes); + var firstItemIndex = 0; + // ignore menu items inserted by Weave + if (items.some(function(aItem, aIndex) { + if ((aItem.getAttribute('anonid') || aItem.id) == 'sync-tabs-sep') { + firstItemIndex = aIndex + 1; + return true; + } + return false; + })) { + items = items.slice(firstItemIndex); + } + var b = this.getTabBrowserFromChild(aEvent.originalTarget) || gBrowser; this.getTabsArray(b).forEach(function(aTab, aIndex) { items[aIndex].style.paddingLeft = aTab.getAttribute(this.kNEST)+'em';