Remove currently needless code from content/treestyletab/config.js.
This commit is contained in:
parent
7db770368d
commit
dd3a9e97f5
@ -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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user