summaryrefslogtreecommitdiffstats
path: root/comm/calendar/base/content/preferences/calendar-preferences.js
blob: 4b42fa2300c091d20dcb7af1d754c4a0a438ee81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

/* exported gCalendarPane */

/* import-globals-from alarms.js */
/* import-globals-from categories.js */
/* import-globals-from general.js */
/* import-globals-from notifications.js */
/* import-globals-from views.js */
/* globals Preferences */

Preferences.add({ id: "calendar.preferences.lightning.selectedTabIndex", type: "int" });

var gCalendarPane = {
  init() {
    let elements = document.querySelectorAll("#paneCalendar preference");
    for (let element of elements) {
      element.updateElements();
    }
    gCalendarGeneralPane.init();
    gAlarmsPane.init();
    gNotificationsPane.init();
    gCategoriesPane.init();
    gViewsPane.init();
  },
};