From 86be4bc73a07540d4d6c85a45689502974164745 Mon Sep 17 00:00:00 2001 From: piro Date: Mon, 27 Jul 2009 08:37:06 +0000 Subject: [PATCH] cosmetic git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@4819 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/treestyletab.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/content/treestyletab/treestyletab.js b/content/treestyletab/treestyletab.js index 8c9b57a4..9708a11c 100644 --- a/content/treestyletab/treestyletab.js +++ b/content/treestyletab/treestyletab.js @@ -1305,12 +1305,13 @@ var TreeStyleTabService = { if (this.getTreePref('openGroupBookmarkAsTabSubTree.underParent')) behavior += this.kGROUP_BOOKMARK_USE_DUMMY; if (!this.getTreePref('openGroupBookmarkBehavior.confirm')) { - if (this.getTreePref('openGroupBookmarkAsTabSubTree')) - behavior += this.kGROUP_BOOKMARK_SUBTREE; - else if (this.getTreePref('browser.tabs.loadFolderAndReplace')) - behavior += this.kGROUP_BOOKMARK_REPLACE; - else - behavior += this.kGROUP_BOOKMARK_SEPARATE; + behavior += ( + this.getTreePref('openGroupBookmarkAsTabSubTree') ? + this.kGROUP_BOOKMARK_SUBTREE : + this.getTreePref('browser.tabs.loadFolderAndReplace') ? + this.kGROUP_BOOKMARK_REPLACE : + this.kGROUP_BOOKMARK_SEPARATE + ); } this.setTreePref('openGroupBookmark.behavior', behavior); this.clearTreePref('openGroupBookmarkBehavior.confirm');