shared++;
div = $('kronolithSharedCalendars');
}
- div.appendChild(new Element('DIV', { 'calendar': cal.key, 'calendarClass': 'internal', 'class': cal.value.show ? 'kronolithCalOn' : 'kronolithCalOff' }).setStyle({ backgroundColor: cal.value.bg, color: cal.value.fg }).update(cal.value.name));
+ div.appendChild(new Element('DIV', { 'calendar': cal.key, 'calendarclass': 'internal', 'class': cal.value.show ? 'kronolithCalOn' : 'kronolithCalOff' }).setStyle({ backgroundColor: cal.value.bg, color: cal.value.fg }).update(cal.value.name));
});
if (my) {
$('kronolithMyCalendars').show();
}
remote.each(function(cal) {
- $('kronolithRemoteCalendars').appendChild(new Element('DIV', { 'calendar': cal.key, 'calendarClass': 'remote', 'class': cal.value.show ? 'kronolithCalOn' : 'kronolithCalOff' }).setStyle({ backgroundColor: cal.value.bg, color: cal.value.fg }).update(cal.value.name));
+ $('kronolithRemoteCalendars').appendChild(new Element('DIV', { 'calendar': cal.key, 'calendarclass': 'remote', 'class': cal.value.show ? 'kronolithCalOn' : 'kronolithCalOff' }).setStyle({ backgroundColor: cal.value.bg, color: cal.value.fg }).update(cal.value.name));
});
if (remote.size()) {
$('kronolithRemoteCalendars').show();
this.eventsLoading[calendar] = start + end;
this.loading++;
$('kronolithLoading').show();
+ this._storeCache($H(), calendar);
this.doAction('ListEvents', { start: start, end: end, cal: calendar, view: view }, callback.bind(this));
}, this);
},
}
}, this);
}, this);
- } else {
- this._storeCache($H(), r.response.cal);
}
},
break;
}
- calClass = elt.readAttribute('calendarClass');
+ calClass = elt.readAttribute('calendarclass');
if (calClass) {
var calendar = elt.readAttribute('calendar');
if (typeof this.ecache[calClass] == 'undefined' ||
}
elt.toggleClassName('kronolithCalOn');
elt.toggleClassName('kronolithCalOff');
- if (calendarClass == 'remote' || calendarClass == 'external') {
- calendar = calendarClass + '_' + calendar;
+ if (calClass == 'remote' || calClass == 'external') {
+ calendar = calClass + '_' + calendar;
}
this.doAction('SaveCalPref', { toggle_calendar: calendar });
}