Use onload handler; fix assertion when related panel first displays.
git-svn-id: svn://10.0.0.236/trunk@40139 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -96,14 +96,3 @@ function OnDblClick(treeitem)
|
||||
}
|
||||
|
||||
|
||||
function Boot() {
|
||||
// Kludge to deal with no onload in XUL.
|
||||
if (document.getElementById("Tree")) {
|
||||
Init();
|
||||
}
|
||||
else {
|
||||
setTimeout("Boot();", 0);
|
||||
}
|
||||
}
|
||||
|
||||
Boot();
|
||||
|
||||
@@ -26,7 +26,8 @@
|
||||
xmlns:html="http://www.w3.org/TR/REC-html40"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
align="vertical">
|
||||
align="vertical"
|
||||
onload="Init();">
|
||||
|
||||
<html:script src="related-panel.js" />
|
||||
|
||||
|
||||
@@ -96,14 +96,3 @@ function OnDblClick(treeitem)
|
||||
}
|
||||
|
||||
|
||||
function Boot() {
|
||||
// Kludge to deal with no onload in XUL.
|
||||
if (document.getElementById("Tree")) {
|
||||
Init();
|
||||
}
|
||||
else {
|
||||
setTimeout("Boot();", 0);
|
||||
}
|
||||
}
|
||||
|
||||
Boot();
|
||||
|
||||
@@ -26,7 +26,8 @@
|
||||
xmlns:html="http://www.w3.org/TR/REC-html40"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
align="vertical">
|
||||
align="vertical"
|
||||
onload="Init();">
|
||||
|
||||
<html:script src="related-panel.js" />
|
||||
|
||||
|
||||
Reference in New Issue
Block a user