зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
bcd02a6294
Коммит
8dcd73f985
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче