選択したブックマーク項目をまとめてタブで開く時に、ツリーとして開けていなかったのを修正

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@4845 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2009-07-31 01:50:26 +00:00
parent 83b7ce5078
commit 79d3b2e1bf
2 changed files with 6 additions and 0 deletions

View File

@ -1,9 +1,11 @@
content treestyletab jar:chrome/treestyletab.jar!/content/treestyletab/
overlay chrome://browser/content/browser.xul chrome://treestyletab/content/treestyletab.xul
overlay chrome://browser/content/bookmarks/bookmarksPanel.xul chrome://treestyletab/content/bookmarksOverlay.xul
overlay chrome://browser/content/places/places.xul chrome://treestyletab/content/bookmarksOverlay.xul
overlay chrome://browser/content/places/editBookmarkOverlay.xul chrome://treestyletab/content/editBookmarkOverlay.xul
overlay chrome://multipletab/content/config.xul chrome://treestyletab/content/multipletabConfigOverlay.xul
overlay chrome://browser/content/browser.xul chrome://treestyletab/content/res/bookmarkMultipleTabs.xul

View File

@ -31,6 +31,7 @@ window.addEventListener('load', function() {
if (
where.indexOf('tab') == 0 ||
aEvent.target.id == 'placesContext_openContainer:tabs' ||
aEvent.target.id == 'placesContext_openLinks:tabs' ||
aEvent.target == aEvent.target.parentNode._endOptOpenAllInTabs ||
aEvent.target.getAttribute('openInTabs') == 'true'
) {
@ -75,6 +76,9 @@ window.addEventListener('load', function() {
PlacesUIUtils.openURINodesInTabs.toSource().replace(
'uri: aNodes[i].uri,',
'id: aNodes[i].itemId, $&'
).replace(
/(this\._openTabset\([^\)]+)(\))/,
'$1, aNodes[0].title$2'
)
);