array('triggerId' => 'kronolithEventTags',
'box' => 'kronolithEventACBox',
'pretty' => true,
- 'var' => 'kronolithETagAc'))
+ 'var' => 'KronolithCore.eventTagAc'))
->attach();
Horde_Ajax_Imple::factory(
'triggerContainer' => 'kronolithACCalendarTriggerContainer',
'box' => 'kronolithCalendarinternalACBox',
'pretty' => true,
- 'var' => 'kronolithCTagAc'))
+ 'var' => 'KronolithCore.calendarTagAc'))
->attach();
Horde_Ajax_Imple::factory(
'triggerContainer' => 'kronolithAttendeesACTriggerContainer',
'box' => 'kronolithAttendeesACBox',
'pretty' => true,
- 'var' => 'kronolithEAttendeesAc'))
+ 'var' => 'KronolithCore.attendeesAc'))
->attach();
echo "</body>\n</html>";
KronolithCore = {
// Vars used and defaulting to null/false:
// DMenu, Growler, inAjaxCallback, is_logout, weekSizes, daySizes,
- // viewLoading, groupLoading, colorPicker, duration, timeMarker
+ // viewLoading, groupLoading, colorPicker, duration, timeMarker,
+ // eventTagAc, calendarTagAc, attendeesAc
view: '',
ecache: $H(),
if (newCalendar) {
switch (type) {
case 'internal':
- kronolithCTagAc.reset();
+ this.calendarTagAc.reset();
// Fall through.
case 'tasklists':
$('kronolithCalendar' + type + 'LinkExport').up('span').hide();
switch (type) {
case 'internal':
- kronolithCTagAc.reset(Kronolith.conf.calendars.internal[calendar].tg);
+ this.calendarTagAc.reset(Kronolith.conf.calendars.internal[calendar].tg);
$('kronolithCalendar' + type + 'ImportCal').setValue(calendar);
if (info.edit) {
$('kronolithCalendar' + type + 'LinkImport').up('li').show();
form.down('.kronolithCalendarDelete').hide();
form.down('.kronolithCalendarSave').hide();
if (type == 'internal' || type == 'tasklists') {
- kronolithCTagAc.disable();
+ this.calendarTagAc.disable();
if (Kronolith.conf.calendars[type][calendar].show) {
form.down('.kronolithCalendarSubscribe').hide();
form.down('.kronolithCalendarUnsubscribe').show().enable();
break;
case 'kronolithEventTag':
- kronolithETagAc.addNewItemNode(elt.getText());
+ this.eventTagAc.addNewItemNode(elt.getText());
e.stop();
break;
case 'kronolithCalendarTag':
- kronolithCTagAc.addNewItemNode(elt.getText());
+ this.calendarTagAc.addNewItemNode(elt.getText());
e.stop();
break;
if (this.redBoxLoading) {
return;
}
- if (typeof kronolithETagAc == 'undefined') {
+ if (Object.isUndefined(this.eventTagAc)) {
this.editEvent.bind(this, calendar, id, date).defer();
return;
}
this.knl.kronolithEventStartTime.markSelected();
this.knl.kronolithEventEndTime.markSelected();
$('kronolithEventForm').reset();
- kronolithEAttendeesAc.reset();
- kronolithETagAc.reset();
+ this.attendeesAc.reset();
+ this.eventTagAc.reset();
$('kronolithEventAttendeesList').select('tr').invoke('remove');
if (Kronolith.conf.maps.driver) {
$('kronolithEventMapLink').hide();
start = viewDates[0].dateString(),
end = viewDates[1].dateString();
- kronolithETagAc.shutdown();
+ this.eventTagAc.shutdown();
$('kronolithEventSave').disable();
$('kronolithEventSaveAsNew').disable();
this.startLoading(target, start + end);
$('kronolithEventStartDate').stopObserving('change', this.attendeeStartDateHandler);
}
if (!Object.isUndefined(ev.at)) {
- kronolithEAttendeesAc.reset(ev.at.pluck('l'));
+ this.attendeesAc.reset(ev.at.pluck('l'));
ev.at.each(this.addAttendee.bind(this));
if (this.fbLoading) {
$('kronolithFBLoading').show();
}
/* Tags */
- kronolithETagAc.reset(ev.tg);
+ this.eventTagAc.reset(ev.tg);
/* Geo */
if (ev.gl) {
if (!ev.pe) {
$('kronolithEventSave').hide();
- kronolithETagAc.disable();
+ this.eventTagAc.disable();
$('kronolithEventTabTags').select('label').invoke('hide');
} else {
this.doAction('listTopTags', null, this.topTagsCallback.curry('kronolithEventTopTags', 'kronolithEventTag'));