зеркало из https://github.com/mozilla/gecko-dev.git
Bug 274010: Restore default set in customize toolbars should restore icon size and mode, patch by Hiro <sugar.waffle@gmail.com>, r=me, sr+a=mscott
This commit is contained in:
Родитель
70c4d673c8
Коммит
f8c23dfea2
|
@ -589,6 +589,12 @@ function restoreDefaultSet()
|
|||
toolbar = toolbar.nextSibling;
|
||||
}
|
||||
|
||||
// Restore the default icon size (large) and mode (icons and text).
|
||||
updateIconSize(false);
|
||||
document.getElementById("smallicons").checked = false;
|
||||
updateToolbarMode("full");
|
||||
document.getElementById("modelist").value = "full";
|
||||
|
||||
// Remove all of the customized toolbars.
|
||||
var child = gToolbox.lastChild;
|
||||
while (child) {
|
||||
|
@ -643,14 +649,7 @@ function updateToolbarMode(aModeValue)
|
|||
}
|
||||
|
||||
var iconSizeCheckbox = document.getElementById("smallicons");
|
||||
if (aModeValue == "text") {
|
||||
iconSizeCheckbox.disabled = true;
|
||||
iconSizeCheckbox.checked = false;
|
||||
updateIconSize(false);
|
||||
}
|
||||
else {
|
||||
iconSizeCheckbox.disabled = false;
|
||||
}
|
||||
iconSizeCheckbox.disabled = aModeValue == "text";
|
||||
|
||||
repositionDialog();
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче