Bug 1665831 - Fix two calendar UI start-up errors. r=pmorris
Differential Revision: https://phabricator.services.mozilla.com/D90650 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
472225cef1
Коммит
4818c6215a
|
@ -25,7 +25,7 @@ var calendarTabMonitor = {
|
||||||
// type definitions. To make sure the commands are correctly disabled,
|
// type definitions. To make sure the commands are correctly disabled,
|
||||||
// we want to update calendar/task commands when switching away from
|
// we want to update calendar/task commands when switching away from
|
||||||
// those tabs.
|
// those tabs.
|
||||||
if (aOldTab.mode.name == "calendar" || aOldTab.mode.name == "task") {
|
if (aOldTab?.mode.name == "calendar" || aOldTab?.mode.name == "task") {
|
||||||
calendarController.updateCommands();
|
calendarController.updateCommands();
|
||||||
calendarController2.updateCommands();
|
calendarController2.updateCommands();
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,7 +43,7 @@ var gUnifinderNeedsRefresh = true;
|
||||||
function isUnifinderHidden() {
|
function isUnifinderHidden() {
|
||||||
let tabmail = document.getElementById("tabmail");
|
let tabmail = document.getElementById("tabmail");
|
||||||
return (
|
return (
|
||||||
tabmail.currentTabInfo.mode.type != "calendar" ||
|
tabmail.currentTabInfo?.mode.type != "calendar" ||
|
||||||
document.getElementById("bottom-events-box").hidden
|
document.getElementById("bottom-events-box").hidden
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче