mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 22:55:23 +00:00
Bug 500322: 'Find' button in download manager does nothing, r=mfinkle
This commit is contained in:
parent
a4ee5abb69
commit
e165295807
@ -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"));
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user