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
Родитель a4ee5abb69
Коммит e165295807
2 изменённых файлов: 1 добавлений и 14 удалений

Просмотреть файл

@ -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>

Просмотреть файл

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