Bug 1120080 - Fix about:firefox updater hooks. r=mfinkle

This commit is contained in:
Richard Newman 2015-01-10 12:44:58 -08:00
parent 977a616783
commit 117baea8b7
2 changed files with 7 additions and 3 deletions

View File

@ -98,6 +98,10 @@ function init() {
let downloadingSpan = document.getElementById("update-message-downloading");
let downloadedSpan = document.getElementById("update-message-downloaded");
updateLink.onclick = checkForUpdates;
foundSpan.onclick = downloadUpdate;
downloadedSpan.onclick = installUpdate;
function showCheckAction() {
checkingSpan.style.display = "none";
noneSpan.style.display = "none";

View File

@ -31,12 +31,12 @@
<div id="logo"/>
#ifdef MOZ_UPDATER
<div id="updateBox">
<a id="updateLink" href="" onclick="checkForUpdates();">&aboutPage.checkForUpdates.link;</a>
<a id="updateLink" href="">&aboutPage.checkForUpdates.link;</a>
<span id="update-message-checking">&aboutPage.checkForUpdates.checking;</span>
<span id="update-message-none">&aboutPage.checkForUpdates.none;</span>
<span id="update-message-found" onclick="downloadUpdate()">&aboutPage.checkForUpdates.available2;</span>
<span id="update-message-found">&aboutPage.checkForUpdates.available2;</span>
<span id="update-message-downloading">&aboutPage.checkForUpdates.downloading;</span>
<span id="update-message-downloaded" onclick="installUpdate()">&aboutPage.checkForUpdates.downloaded2;</span>
<span id="update-message-downloaded">&aboutPage.checkForUpdates.downloaded2;</span>
</div>
#endif