Remove currently needless code from content/treestyletab/config.js.

This commit is contained in:
saneyuki_s 2012-09-18 02:19:55 +09:00
parent 7db770368d
commit dd3a9e97f5

View File

@ -76,13 +76,8 @@ function initAppearancePane()
onChangeTabbarPosition(); onChangeTabbarPosition();
var sidebar = document.getElementById('extensions.treestyletab.tabbar.style-sidebar'); var sidebar = document.getElementById('extensions.treestyletab.tabbar.style-sidebar');
if (comparator.compare(XULAppInfo.version, '3.6') >= 0) { sidebar.removeAttribute('disabled');
sidebar.removeAttribute('disabled');
}
else {
sidebar.setAttribute('disabled', true);
}
var boxes = [ var boxes = [
document.getElementById('extensions.treestyletab.tabbar.style-arrowscrollbox'), document.getElementById('extensions.treestyletab.tabbar.style-arrowscrollbox'),
document.getElementById('extensions.treestyletab.twisty.style-arrowscrollbox') document.getElementById('extensions.treestyletab.twisty.style-arrowscrollbox')
@ -152,20 +147,13 @@ function initTabPane()
); );
var newTabPref = document.getElementById('extensions.treestyletab.autoAttach.newTabButton-box'); var newTabPref = document.getElementById('extensions.treestyletab.autoAttach.newTabButton-box');
if (comparator.compare(XULAppInfo.version, '4.0') >= 0) newTabPref.removeAttribute('hidden');
newTabPref.removeAttribute('hidden');
else
newTabPref.setAttribute('hidden', true);
var bookmarkGroupReplacePref = document.getElementById('openGroupBookmark.replace'); var bookmarkGroupReplacePref = document.getElementById('openGroupBookmark.replace');
if (comparator.compare(XULAppInfo.version, '7.0') > 0) { if (bookmarkGroupReplacePref.selected) {
if (bookmarkGroupReplacePref.selected) document.getElementById('openGroupBookmark.subtree').selected = true;
document.getElementById('openGroupBookmark.subtree').selected = true;
bookmarkGroupReplacePref.setAttribute('hidden', true);
}
else {
bookmarkGroupReplacePref.removeAttribute('hidden');
} }
bookmarkGroupReplacePref.setAttribute('hidden', true);
} }
function onSyncGroupBookmarkUIToPref() function onSyncGroupBookmarkUIToPref()