landing neil's patch for bug 208464 - From the Start menu select Help & Support and a blank window appears. r=ssu, sr=sspitzer, a=asa

git-svn-id: svn://10.0.0.236/trunk@143588 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
ssu%netscape.com 2003-06-11 17:45:55 +00:00
parent 257876c706
commit 0bd065bfc5

View File

@ -96,13 +96,16 @@ function init() {
helpGlossaryPanel = document.getElementById("help-glossary-tree");
helpBrowser = document.getElementById("help-content");
var params = window.arguments[0].QueryInterface(Components.interfaces.nsIDialogParamBlock);
helpFileURI = params.GetString(0);
helpBaseURI = helpFileURI.substring(0, helpFileURI.lastIndexOf("/")+1); // trailing "/" included.
var helpTopic = defaultTopic;
if ("arguments" in window && window.arguments[0] instanceof Components.interfaces.nsIDialogParamBlock) {
helpFileURI = window.arguments[0].GetString(0);
helpBaseURI = helpFileURI.substring(0, helpFileURI.lastIndexOf("/")+1); // trailing "/" included.
helpTopic = window.arguments[0].GetString(1);
}
loadHelpRDF();
displayTopic(params.GetString(1));
displayTopic(helpTopic);
// move to right end of screen
var width = document.documentElement.getAttribute("width");