From 7c71359f2df2758ef36bad616e06dc96fe6cf2e0 Mon Sep 17 00:00:00 2001 From: SHIMODA Hiroshi Date: Wed, 25 May 2011 12:47:38 +0900 Subject: [PATCH] pref UI for middle click on the new tab button should be hidden on Firefox 3.6 --- content/treestyletab/config.js | 6 ++++++ content/treestyletab/config.xul | 2 +- content/treestyletab/treestyletab.js | 4 ++-- defaults/preferences/treestyletab.js | 2 ++ 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/content/treestyletab/config.js b/content/treestyletab/config.js index 9a7ba41e..a97a9396 100644 --- a/content/treestyletab/config.js +++ b/content/treestyletab/config.js @@ -162,6 +162,12 @@ function initTabPane() 'openGroupBookmark-check', 'openGroupBookmark-deck' ); + + var newTabPref = document.getElementById('extensions.treestyletab.autoAttach.newTabButton-box'); + if (comparator.compare(XULAppInfo.version, '4.0') >= 0) + newTabPref.removeAttribute('hidden'); + else + newTabPref.setAttribute('hidden', true); } function onSyncGroupBookmarkUIToPref() diff --git a/content/treestyletab/config.xul b/content/treestyletab/config.xul index 27c0fb2b..53d4f7fd 100644 --- a/content/treestyletab/config.xul +++ b/content/treestyletab/config.xul @@ -381,7 +381,7 @@