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:
philringnalda%gmail.com 2006-11-09 05:08:35 +00:00
Родитель 70c4d673c8
Коммит f8c23dfea2
1 изменённых файлов: 7 добавлений и 8 удалений

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

@ -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();
}