From 6574c85862dbde7d888d141ea40cb02e907fd0a3 Mon Sep 17 00:00:00 2001 From: "mgalli%geckonnection.com" Date: Tue, 14 Feb 2006 22:21:32 +0000 Subject: [PATCH] Polish download --- minimo/chrome/content/minimo.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/minimo/chrome/content/minimo.js b/minimo/chrome/content/minimo.js index 8856ee786fe..77b492d5c8f 100755 --- a/minimo/chrome/content/minimo.js +++ b/minimo/chrome/content/minimo.js @@ -1346,12 +1346,13 @@ function DownloadCancel(refId) { function DownloadReveal() { - alert(document.getElementById("toolbar-download-tag").getAttribute("reveal")); + document.getElementById("toolbar-download-tag").value=document.getElementById("toolbar-download-tag").getAttribute("reveal"); + document.getElementById("download-button-stop").label=""; + document.getElementById("toolbar-download-tag").inputField.style.backgroundColor="lightgreen"; + document.getElementById("toolbar-download-tag").inputField.style.backgroundPosition=gInputBoxObject.width+20+"px 100%"; } - - function TransferItemFactory() { } @@ -1387,6 +1388,7 @@ TransferItem.prototype = { document.getElementById("download-button-stop").disabled=false; document.getElementById("toolbar-download-tag").value=aSource.spec; document.getElementById("toolbar-download-tag").setAttribute("reveal",aTarget.spec); + document.getElementById("toolbar-download-tag").setAttribute("sourcelocation",aSource.spec); },