Fixed potential exception when Calendar module is disabled

This commit is contained in:
Ludovic Marcotte
2014-09-22 08:38:01 -04:00
parent d572f2af02
commit ae6afedc92

View File

@@ -277,12 +277,12 @@ function initPreferences() {
$(tablebody).deselectAll();
}
var table = whiteList.childNodesWithTag("table")[0];
table.multiselect = true;
$("appointmentsWhiteListAdd").observe("click", onAppointmentsWhiteListAdd);
$("appointmentsWhiteListDelete").observe("click", onAppointmentsWhiteListDelete);
}
var table = whiteList.childNodesWithTag("table")[0];
table.multiselect = true;
$("appointmentsWhiteListAdd").observe("click", onAppointmentsWhiteListAdd);
$("appointmentsWhiteListDelete").observe("click", onAppointmentsWhiteListDelete);
// Calender categories
var wrapper = $("calendarCategoriesListWrapper");