зеркало из https://github.com/mozilla/gecko-dev.git
Bug 500322: 'Find' button in download manager does nothing, r=mfinkle
This commit is contained in:
Родитель
a4ee5abb69
Коммит
e165295807
|
@ -128,8 +128,6 @@
|
||||||
<xul:button anonid="showpage-button" label="&downloadShowPage.label;"
|
<xul:button anonid="showpage-button" label="&downloadShowPage.label;"
|
||||||
oncommand="DownloadsView.showPage(document.getBindingParent(this));"/>
|
oncommand="DownloadsView.showPage(document.getBindingParent(this));"/>
|
||||||
<xul:spacer flex="1"/>
|
<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;"
|
<xul:button anonid="open-button" label="&downloadOpen2.label;"
|
||||||
oncommand="DownloadsView.openDownload(document.getBindingParent(this));"/>
|
oncommand="DownloadsView.openDownload(document.getBindingParent(this));"/>
|
||||||
<xul:image anonid="remove-button" class="close-button"
|
<xul:image anonid="remove-button" class="close-button"
|
||||||
|
@ -146,10 +144,8 @@
|
||||||
document.getAnonymousElementByAttribute(this, "anonid", "showpage-button").setAttribute("disabled", "true");
|
document.getAnonymousElementByAttribute(this, "anonid", "showpage-button").setAttribute("disabled", "true");
|
||||||
|
|
||||||
let file = DownloadsView._getLocalFile(this.getAttribute("file"));
|
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", "open-button").setAttribute("disabled", "true");
|
||||||
document.getAnonymousElementByAttribute(this, "anonid", "show-button").setAttribute("disabled", "true");
|
|
||||||
}
|
|
||||||
]]>
|
]]>
|
||||||
</constructor>
|
</constructor>
|
||||||
</implementation>
|
</implementation>
|
||||||
|
|
|
@ -416,15 +416,6 @@ var DownloadsView = {
|
||||||
// TODO: add back the code for "dontAsk"?
|
// 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) {
|
removeDownload: function dv_removeDownload(aItem) {
|
||||||
this._dlmgr.removeDownload(aItem.getAttribute("downloadID"));
|
this._dlmgr.removeDownload(aItem.getAttribute("downloadID"));
|
||||||
},
|
},
|
||||||
|
|
Загрузка…
Ссылка в новой задаче