keyupHandler: function(e)
{
- /*
- if (e.element().readAttribute('id') == 'foo') {
+ switch (e.element().readAttribute('id')) {
+ case 'kronolithEventLocation':
+ if ($F('kronolithEventLocation')) {
+ $('kronolithEventMapLink').show();
+ } else {
+ $('kronolithEventMapLink').hide();
+ }
+ return;
}
- */
+
},
clickHandler: function(e, dblclick)
this.toggleAllDay(false);
$('kronolithEventForm').enable();
$('kronolithEventForm').reset();
+ $('kronolithEventMapLink').hide();
$('kronolithEventSave').show();
$('kronolithEventDelete').show();
$('kronolithEventForm').down('.kronolithFormActions').down('.kronolithSep').show();
$('kronolithEventTarget').setValue(ev.ty + '|' + ev.c);
$('kronolithEventTitle').setValue(ev.t);
$('kronolithEventLocation').setValue(ev.l);
+ if (ev.l) {
+ $('kronolithEventMapLink').show();
+ }
$('kronolithEventUrl').setValue(ev.u);
$('kronolithEventAllday').setValue(ev.al);
this.toggleAllDay(ev.al);
</div>
<div>
-<table cellspacing="0" cellpadding="0" border="0"><tbody><tr>
+<table id="kronolithEventBasics" cellspacing="0" cellpadding="0" border="0"><tbody><tr>
<td>
- <label for="kronolithEventCalendar"><?php echo _("Calendar") ?>:</label>
- <select name="targetcalendar" id="kronolithEventTarget">
- </select>
+ <label for="kronolithEventCalendar"><?php echo _("Calendar") ?>:<br />
+ <select name="targetcalendar" id="kronolithEventTarget"></select>
+ </label>
</td>
<td>
- <label for="kronolithEventLocation"><?php echo _("Location") ?>:</label>
- <input type="text" name="location" id="kronolithEventLocation" size="40" />
- <?php if ($GLOBALS['conf']['maps']['driver']):?>
- · <span><a class="kronolithEventGeo" href="#"><?php echo _("Find in Maps") ?></a></span>
+ <label for="kronolithEventLocation"><?php echo _("Location") ?>:<br />
+ <input type="text" name="location" id="kronolithEventLocation" size="40" />
+ </label>
+ <?php if ($GLOBALS['conf']['maps']['driver']): ?>
+ <span id="kronolithEventMapLink" style="display:none">
+ · <span><a class="kronolithEventGeo" href="#"><?php echo _("Find in Maps") ?></a></span>
+ </span>
<?php endif; ?>
</td>
</tr></tbody></table>
<table id="kronolithEventDates" cellspacing="0" cellpadding="0" border="0"><tbody>
<tr>
<td>
- <label for="kronolithEventStartDate">
+ <label>
<?php echo _("From") ?>:<br />
<input type="text" name="start_date" id="kronolithEventStartDate" size="10" />
<?php echo Horde::img('picker.png', _("Set start date"), 'id="kronolithEventStartPicker"') ?>
</label>
</td>
<td>
- <label for="kronolithEventEndDate"><?php echo _("To") ?>:<br />
+ <label><?php echo _("To") ?>:<br />
<input type="text" name="end_date" id="kronolithEventEndDate" size="10" />
<?php echo Horde::img('picker.png', _("Set end date"), 'id="kronolithEventEndPicker"') ?>
</label>