Uncheck the disabled checkbox about animation effects if browser.tabs.animate is disabled

This commit is contained in:
Piro / YUKI Hiroshi 2012-09-23 15:10:44 +09:00
parent c9a3d28c72
commit f106546809

View File

@ -62,10 +62,13 @@ function init()
ensureGroupBookmarkItems(); ensureGroupBookmarkItems();
var animation = document.getElementById('extensions.treestyletab.animation.enabled-check'); var animation = document.getElementById('extensions.treestyletab.animation.enabled-check');
if (prefs.getPref('browser.tabs.animate') === false) if (prefs.getPref('browser.tabs.animate') === false) {
animation.setAttribute('disabled', true); animation.setAttribute('disabled', true);
else animation.removeAttribute('checked');
}
else {
animation.removeAttribute('disabled'); animation.removeAttribute('disabled');
}
// sizeToContent(); // sizeToContent();
} }