From da5ed3220c933ca0bd18035168e30a04eefc431c Mon Sep 17 00:00:00 2001 From: "blakeross%telocity.com" Date: Wed, 17 Jan 2001 00:20:25 +0000 Subject: [PATCH] Fix 57140: JS strict warnings in commonDialog.js. patch by Mark Olson. r=blake sr=alecf --- xpfe/global/resources/content/commonDialog.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xpfe/global/resources/content/commonDialog.js b/xpfe/global/resources/content/commonDialog.js index 4b730a5307ff..4dfe16b1d75f 100644 --- a/xpfe/global/resources/content/commonDialog.js +++ b/xpfe/global/resources/content/commonDialog.js @@ -34,8 +34,9 @@ function commonDialogOnLoad() var messageText = gCommonDialogParam.GetString(0); var messageParent = document.getElementById("info.box"); var messageParagraphs = messageText.split("\n"); + var i; - for (var i = 0; i < messageParagraphs.length; i++) { + for (i = 0; i < messageParagraphs.length; i++) { var htmlNode = document.createElement("html"); //htmlNode.setAttribute("style", "max-width: 45em;"); var text = document.createTextNode(messageParagraphs[i]); @@ -148,7 +149,7 @@ function commonDialogOnLoad() var focusList = ["dialog.loginname", "dialog.password1", "dialog.password2", "ok", "cancel", "Button2", "Button3"] - for (var i = 0; i < visibilityList.length; i++) { + for (i = 0; i < visibilityList.length; i++) { if (isVisible(visibilityList[i])) { document.getElementById(focusList[i]).focus(); break;