restore the line that updates the expander icon. It has been accidently removed.

Some cleanup.
This commit is contained in:
chanial%noos.fr 2003-12-15 00:51:30 +00:00
parent e4edf3ff44
commit 113d9d8d21

View File

@ -193,16 +193,16 @@ function selectTreeFolder()
function expandTree()
{
setFolderTreeHeight();
var isCollapsed = !gBookmarksTree.collapsed;
gBookmarksTree.collapsed = isCollapsed;
sizeToContent();
document.documentElement.getButton("extra2").collapsed = isCollapsed;
if (isCollapsed)
var willCollapse = !gBookmarksTree.collapsed;
document.getElementById("expander").setAttribute("class",willCollapse?"down":"up");
if (willCollapse)
document.documentElement.buttons = "accept,cancel";
else {
document.documentElement.buttons = "accept,cancel,extra2";
gBookmarksTree.focus();
}
gBookmarksTree.collapsed = willCollapse;
sizeToContent();
}
function setFolderTreeHeight()