Bug 401601 - applications preference tab jumps the first time I select it. r=sspitzer, blocking-firefox3=mconnor

This commit is contained in:
rob_strong@exchangecode.com 2007-11-30 17:01:43 -08:00
parent 0802e1a12b
commit 70255a5a40

View File

@ -729,6 +729,11 @@
if (paneTitle != "")
document.title = paneTitle;
#endif
var helpButton = document.documentElement.getButton("help");
if (aPaneElement.hasAttribute("helpURI"))
helpButton.hidden = false;
else
helpButton.hidden = true;
// Find this pane's index in the deck and set the deck's
// selectedIndex to that value to switch to it.
@ -786,12 +791,6 @@
break;
}
}
var helpButton = document.documentElement.getButton("help");
if (aPaneElement.hasAttribute("helpURI"))
helpButton.hidden = false;
else
helpButton.hidden = true;
]]>
</body>
</method>