mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
restore the line that updates the expander icon. It has been accidently removed.
Some cleanup.
This commit is contained in:
parent
e4edf3ff44
commit
113d9d8d21
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user