Bug 491638 - Clear recent history dialog should persist details expansion, r=johnath

This commit is contained in:
Drew Willcoxon
2009-05-15 09:42:08 -07:00
parent c5aa58c677
commit d8adb102a6
3 changed files with 54 additions and 8 deletions

View File

@@ -255,14 +255,14 @@ var gSanitizePromptDialog = {
// Showing item list
if (itemList.collapsed) {
expanderButton.className = "expander-up";
itemList.collapsed = false;
itemList.setAttribute("collapsed", "false");
window.resizeBy(0, itemList.boxObject.height);
}
// Hiding item list
else {
expanderButton.className = "expander-down";
window.resizeBy(0, -itemList.boxObject.height);
itemList.collapsed = true;
itemList.setAttribute("collapsed", "true");
}
}