Pref load Download.s..

This commit is contained in:
mgalli%geckonnection.com 2006-02-16 21:09:34 +00:00
parent 90fc00eba5
commit a47e3403f8

View File

@ -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="";
}
}