if (r.response.deleted) {
this._removeEvent(eventid, cal);
} else {
- $('kronolithBody').select('div').findAll(function(el) { return el.retrieve('calendar') == cal && el.retrieve('eventid') == eventid; }).invoke('toggle');
+ $('kronolithBody').select('div').findAll(function(el) {
+ return el.retrieve('calendar') == cal &&
+ el.retrieve('eventid') == eventid;
+ }).invoke('toggle');
}
}.bind(this));
- $('kronolithBody').select('div').findAll(function(el) { return el.retrieve('calendar') == cal && el.retrieve('eventid') == eventid; }).invoke('hide');
+ $('kronolithBody').select('div').findAll(function(el) {
+ return el.retrieve('calendar') == cal &&
+ el.retrieve('eventid') == eventid;
+ }).invoke('hide');
this._closeRedBox();
window.history.back();
e.stop();
RedBox.onDisplay = null;
};
- this.updateCalendarDropDown('kronolithEventCalendar');
+ this.updateCalendarDropDown('kronolithEventTarget');
$('kronolithEventForm').enable();
$('kronolithEventForm').reset();
this.doAction('ListTopTags', {}, this._topTags);
$('kronolithEventTags').autocompleter.init();
var d = date ? this.parseDate(date) : new Date();
$('kronolithEventId').clear();
- $('kronolithEventCalendar').setValue(Kronolith.conf.default_calendar);
+ $('kronolithEventCalendar').clear();
+ $('kronolithEventTarget').setValue(Kronolith.conf.default_calendar);
$('kronolithEventDelete').hide();
$('kronolithEventStartDate').setValue(d.toString(Kronolith.conf.date_format));
$('kronolithEventStartTime').setValue(d.toString(Kronolith.conf.time_format));
/* Basic information */
$('kronolithEventId').setValue(ev.id);
$('kronolithEventCalendar').setValue(ev.ty + '|' + ev.c);
+ $('kronolithEventTarget').setValue(ev.ty + '|' + ev.c);
$('kronolithEventTitle').setValue(ev.t);
$('kronolithEventLocation').setValue(ev.l);
$('kronolithEventAllday').setValue(ev.al);
<div id="kronolithEventDialog" style="display:none">
<form id="kronolithEventForm" action="">
<input id="kronolithEventId" type="hidden" name="id" />
+<input id="kronolithEventCalendar" type="hidden" name="cal" />
<div>
<label for="kronolithEventTitle"><?php echo _("Event title") ?>:</label><br />
<table cellspacing="0" cellpadding="0" border="0"><tbody><tr>
<td>
<label for="kronolithEventCalendar"><?php echo _("Calendar") ?>:</label><br />
- <select name="cal" id="kronolithEventCalendar">
+ <select name="targetcalendar" id="kronolithEventTarget">
</select>
</td>
<td>