Bug 500322: 'Find' button in download manager does nothing, r=mfinkle

This commit is contained in:
Benjamin Stover 2009-09-01 23:46:05 -04:00
parent a4ee5abb69
commit e165295807
2 changed files with 1 additions and 14 deletions

View File

@ -128,8 +128,6 @@
<xul:button anonid="showpage-button" label="&downloadShowPage.label;"
oncommand="DownloadsView.showPage(document.getBindingParent(this));"/>
<xul:spacer flex="1"/>
<xul:button anonid="show-button" label="&downloadShow2.label;"
oncommand="DownloadsView.showDownload(document.getBindingParent(this));"/>
<xul:button anonid="open-button" label="&downloadOpen2.label;"
oncommand="DownloadsView.openDownload(document.getBindingParent(this));"/>
<xul:image anonid="remove-button" class="close-button"
@ -146,10 +144,8 @@
document.getAnonymousElementByAttribute(this, "anonid", "showpage-button").setAttribute("disabled", "true");
let file = DownloadsView._getLocalFile(this.getAttribute("file"));
if (!file.exists()) {
if (!file.exists())
document.getAnonymousElementByAttribute(this, "anonid", "open-button").setAttribute("disabled", "true");
document.getAnonymousElementByAttribute(this, "anonid", "show-button").setAttribute("disabled", "true");
}
]]>
</constructor>
</implementation>

View File

@ -416,15 +416,6 @@ var DownloadsView = {
// TODO: add back the code for "dontAsk"?
},
showDownload: function dv_showDownload(aItem) {
let f = this._getLocalFile(aItem.getAttribute("file"));
try {
f.reveal();
} catch (ex) { }
// TODO: add back the extra code?
},
removeDownload: function dv_removeDownload(aItem) {
this._dlmgr.removeDownload(aItem.getAttribute("downloadID"));
},