Bug 53712 - changing themes shouldn't reaply current theme

patch by gerv (gervase.markham@univ.ox.ac.uk), r=timeless, sr=alecf
This commit is contained in:
bbaetz%cs.mcgill.ca 2001-05-12 17:47:33 +00:00
Родитель bcd02a6294
Коммит 8dcd73f985
1 изменённых файлов: 6 добавлений и 2 удалений

Просмотреть файл

@ -28,8 +28,10 @@ function applySkin()
var tree = document.getElementById( "skinsTree" );
var selectedSkinItem = tree.selectedItems[0];
var skinName = selectedSkinItem.getAttribute( "name" );
chromeRegistry.selectSkin( skinName, DEBUG_USE_PROFILE );
chromeRegistry.refreshSkins();
if (!chromeRegistry.isSkinSelected(skinName, DEBUG_USE_PROFILE)) {
chromeRegistry.selectSkin( skinName, DEBUG_USE_PROFILE );
chromeRegistry.refreshSkins();
}
}
function deselectSkin()
@ -88,6 +90,8 @@ function themeSelect()
uninstallButton.label = uninstallLabel;
var locType = selectedItem.getAttribute("loctype");
uninstallButton.disabled = (locType == "install");
var skinName = selectedItem.getAttribute( "name" );
applyButton.disabled = chromeRegistry.isSkinSelected(skinName, DEBUG_USE_PROFILE);
}
else {
applyButton.setAttribute("disabled", true);