From bb04d495a12303f50a84505265b715d90f452c7b Mon Sep 17 00:00:00 2001 From: "jaggernaut%netscape.com" Date: Mon, 11 Jun 2001 21:40:19 +0000 Subject: [PATCH] Bug 80380: xp file picker: unable to type in textfield after selecting from droplist r=bryner, sr=ben, a=asa@mozilla.org --- .../filepicker/res/content/filepicker.js | 40 +++++++------------ 1 file changed, 15 insertions(+), 25 deletions(-) diff --git a/xpfe/components/filepicker/res/content/filepicker.js b/xpfe/components/filepicker/res/content/filepicker.js index 32a2a7ed3cd2..92ce26858f9d 100644 --- a/xpfe/components/filepicker/res/content/filepicker.js +++ b/xpfe/components/filepicker/res/content/filepicker.js @@ -34,7 +34,6 @@ const nsIOutlinerBoxObject = Components.interfaces.nsIOutlinerBoxObject; var sfile = Components.classes[nsLocalFile_CONTRACTID].createInstance(nsILocalFile); var retvals; var filePickerMode; -var dirHistory; var homeDir; var outlinerView; @@ -46,8 +45,6 @@ var gFilePickerBundle; function filepickerLoad() { gFilePickerBundle = document.getElementById("bundle_filepicker"); - dirHistory = new Array(); - textInput = document.getElementById("textInput"); okButton = document.getElementById("ok"); outlinerView = new nsFileView(); @@ -409,34 +406,27 @@ function onDirectoryChanged(target) } function addToHistory(directoryName) { - var found = false; + var menu = document.getElementById("lookInMenu"); + var children = menu.childNodes; + var i = 0; - while (!found && i