From a8a02696d9f1ff0589b6ff53e402b612169d9944 Mon Sep 17 00:00:00 2001 From: "blakeross%telocity.com" Date: Sun, 17 Mar 2002 08:07:04 +0000 Subject: [PATCH] Stuff that's not part of the build can stay in. --- .../download-manager/resources/downloadmanager.js | 5 +++-- .../download-manager/resources/downloadmanager.xul | 8 +++----- .../resources/locale/en-US/downloadmanager.dtd | 2 +- .../resources/locale/en-US/downloadmanager.ent | 2 +- 4 files changed, 8 insertions(+), 9 deletions(-) diff --git a/xpfe/components/download-manager/resources/downloadmanager.js b/xpfe/components/download-manager/resources/downloadmanager.js index f4f5a72b3f11..1c84e8ca9bfd 100644 --- a/xpfe/components/download-manager/resources/downloadmanager.js +++ b/xpfe/components/download-manager/resources/downloadmanager.js @@ -48,7 +48,7 @@ var gStatusBar = null; function NODE_ID(aElement) { - return aElement.getAttribute("ref") || aElement.id; + return aElement.id || aElement.getAttribute("ref"); } function Startup() @@ -134,7 +134,7 @@ var downloadViewController = { var cmds = ["cmd_properties", "cmd_pause", "cmd_cancel", "cmd_openfile", "cmd_showinshell"]; var selectionCount = gDownloadView.selectedItems.length; - if (!selectionCount) return false; + if (!selectionCount || !gDownloadView.getRowCount()) return false; var isDownloading = gDownloadManager.getDownload(gDownloadView.selectedItems[0].id); switch (aCommand) { @@ -204,6 +204,7 @@ var downloadViewController = { case "cmd_remove": for (i = 0; i < selection.length; ++i) gDownloadManager.removeDownload(selection[i].id); + window.updateCommands("tree-select"); break; case "cmd_selectAll": gDownloadView.selectAll(); diff --git a/xpfe/components/download-manager/resources/downloadmanager.xul b/xpfe/components/download-manager/resources/downloadmanager.xul index 9b0f6290ef8e..7095dda4f1f9 100644 --- a/xpfe/components/download-manager/resources/downloadmanager.xul +++ b/xpfe/components/download-manager/resources/downloadmanager.xul @@ -109,17 +109,15 @@ - + - - + - + diff --git a/xpfe/components/download-manager/resources/locale/en-US/downloadmanager.dtd b/xpfe/components/download-manager/resources/locale/en-US/downloadmanager.dtd index 95b0c9818320..076ed6a3d264 100644 --- a/xpfe/components/download-manager/resources/locale/en-US/downloadmanager.dtd +++ b/xpfe/components/download-manager/resources/locale/en-US/downloadmanager.dtd @@ -15,7 +15,7 @@ - + diff --git a/xpfe/components/download-manager/resources/locale/en-US/downloadmanager.ent b/xpfe/components/download-manager/resources/locale/en-US/downloadmanager.ent index 95b0c9818320..076ed6a3d264 100644 --- a/xpfe/components/download-manager/resources/locale/en-US/downloadmanager.ent +++ b/xpfe/components/download-manager/resources/locale/en-US/downloadmanager.ent @@ -15,7 +15,7 @@ - +