Fixed potential exception when Calendar module is disabled

pull/3/head
Ludovic Marcotte 2014-09-22 08:38:01 -04:00
parent d572f2af02
commit ae6afedc92
1 changed files with 5 additions and 5 deletions

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");