From 8dca080a5e97d6d3071df908a1038dc201af30c4 Mon Sep 17 00:00:00 2001 From: "mgalli%geckonnection.com" Date: Thu, 16 Feb 2006 21:09:38 +0000 Subject: [PATCH] Pref load Download.s.. git-svn-id: svn://10.0.0.236/trunk@190244 18797224-902f-48f8-a5cc-f745e15eee43 --- .../minimo/chrome/content/preferences/preferences.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/mozilla/minimo/chrome/content/preferences/preferences.js b/mozilla/minimo/chrome/content/preferences/preferences.js index 2f3a7673af7..13d0aa91b41 100644 --- a/mozilla/minimo/chrome/content/preferences/preferences.js +++ b/mozilla/minimo/chrome/content/preferences/preferences.js @@ -87,9 +87,9 @@ function UIdependencyCheck() { } if(!document.getElementById("dontAskForLaunch").checked) { - document.getElementById("downloadDir").disabled=true; + document.getElementById("downloadDirDisplay").disabled=true; } else { - document.getElementById("downloadDir").disabled=false; + document.getElementById("downloadDirDisplay").disabled=false; } } @@ -100,8 +100,12 @@ function UIdependencyCheck() { */ function downloadSetTextbox() { - var dirLocation=document.getElementById("downloadDir").value; - document.getElementById("downloadDirDisplay").value=dirLocation.path; + if(document.getElementById("downloadDir")&&document.getElementById("downloadDir").value) { + var dirLocation=document.getElementById("downloadDir").value; + document.getElementById("downloadDirDisplay").value=dirLocation.path; + } else { + document.getElementById("downloadDirDisplay").value=""; + } }