Bug 883962 - Make the download button in the appbar toggle the downloads infobar. r=sfoster

This commit is contained in:
Marina Samuel 2013-08-07 18:41:25 -04:00
parent 02fabf19ca
commit cccef77c53
3 changed files with 4 additions and 2 deletions

View File

@ -70,8 +70,8 @@ var Appbar = {
},
onDownloadButton: function() {
// TODO: Bug 883962: Toggle the downloads infobar when the
// download button is clicked
let notificationBox = Browser.getNotificationBox();
notificationBox.notificationsHidden = !notificationBox.notificationsHidden;
ContextUI.dismiss();
},

View File

@ -169,6 +169,7 @@ var Downloads = {
},
showNotification: function dh_showNotification(title, msg, buttons, priority) {
this._notificationBox.notificationsHidden = false;
return this._notificationBox.appendNotification(msg,
title,
URI_GENERIC_ICON_DOWNLOAD,

View File

@ -101,6 +101,7 @@ HelperAppLauncherDialog.prototype = {
.replace("#2", downloadSize)
.replace("#3", aLauncher.source.host);
notificationBox.notificationsHidden = false;
let newBar = notificationBox.appendNotification(msg,
"save-download",
URI_GENERIC_ICON_DOWNLOAD,