зеркало из https://github.com/mozilla/gecko-dev.git
Bug 837640 - global notifications should be hidden during print preview. r=felipe
This commit is contained in:
Родитель
286aae4699
Коммит
48e8e0cdf9
|
@ -3000,6 +3000,10 @@ var PrintPreviewListener = {
|
|||
if (gFindBarInitialized)
|
||||
gFindBar.close();
|
||||
|
||||
var globalNotificationBox = document.getElementById("global-notificationbox");
|
||||
this._chromeState.globalNotificationsOpen = !globalNotificationBox.notificationsHidden;
|
||||
globalNotificationBox.notificationsHidden = true;
|
||||
|
||||
this._chromeState.syncNotificationsOpen = false;
|
||||
var syncNotifications = document.getElementById("sync-notifications");
|
||||
if (syncNotifications) {
|
||||
|
@ -3019,6 +3023,9 @@ var PrintPreviewListener = {
|
|||
if (this._chromeState.findOpen)
|
||||
gFindBar.open();
|
||||
|
||||
if (this._chromeState.globalNotificationsOpen)
|
||||
document.getElementById("global-notificationbox").notificationsHidden = false;
|
||||
|
||||
if (this._chromeState.syncNotificationsOpen)
|
||||
document.getElementById("sync-notifications").notificationsHidden = false;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче