Bug 526919 - Lightweight theme notification bar hides when loading new page. r=dtownsend

This commit is contained in:
Dão Gottwald 2009-11-13 19:35:23 +01:00
Родитель 1505c646cf
Коммит fb10cf0bb4
1 изменённых файлов: 12 добавлений и 7 удалений

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

@ -7124,9 +7124,11 @@ var LightWeightThemeWebInstaller = {
this._removePreviousNotifications(); this._removePreviousNotifications();
var notificationBox = gBrowser.getNotificationBox(); var notificationBox = gBrowser.getNotificationBox();
notificationBox.appendNotification(message, "lwtheme-install-request", "", var notificationBar =
notificationBox.PRIORITY_INFO_MEDIUM, notificationBox.appendNotification(message, "lwtheme-install-request", "",
buttons); notificationBox.PRIORITY_INFO_MEDIUM,
buttons);
notificationBar.persistence = 1;
}, },
_install: function (newTheme) { _install: function (newTheme) {
@ -7160,10 +7162,13 @@ var LightWeightThemeWebInstaller = {
this._removePreviousNotifications(); this._removePreviousNotifications();
var notificationBox = gBrowser.getNotificationBox(); var notificationBox = gBrowser.getNotificationBox();
notificationBox.appendNotification(text("message"), var notificationBar =
"lwtheme-install-notification", "", notificationBox.appendNotification(text("message"),
notificationBox.PRIORITY_INFO_MEDIUM, "lwtheme-install-notification", "",
buttons); notificationBox.PRIORITY_INFO_MEDIUM,
buttons);
notificationBar.persistence = 1;
notificationBar.timeout = Date.now() + 20000; // 20 seconds
}, },
_removePreviousNotifications: function () { _removePreviousNotifications: function () {