# HG changeset patch # User Charlie Root # Date 1515881201 18000 # Node ID 3bd5fe8166b8d76facd23bd966c5f9c8967869fc # Parent 165944ca08e77b713899e96aeadcbeddca05572f switch to using vurl as well for better display, and it gets saved diff -r 165944ca08e7 -r 3bd5fe8166b8 plugins/calendar/calendar.php --- a/plugins/calendar/calendar.php Sat Jan 13 09:45:02 2018 -0500 +++ b/plugins/calendar/calendar.php Sat Jan 13 17:06:41 2018 -0500 @@ -3320,9 +3320,14 @@ } else { // hack around missing database_driver implementation of that method + $mbox_u = str_replace('/','%2F',$mbox); // e.g. Bookings%2FBigHouse%2FPending + $url = "https://hppllc.org/roundcube/?_task=mail&_mbox=$mbox_u&_uid=$uid"; $event['links'] = array( - array('mailurl' => "https://hppllc.org/roundcube/?_task=mail&_mbox=Bookings%2FBigHouse%2FPending&_uid=$uid", + array('mailurl' => $url, 'subject' => 'link to original email')); + $event['vurl'] = $url; // so it gets saved + + rcube::write_log('cal',"$mbox $mbox_u ".$event['links'][0]['mailurl']); } // copy mail attachments to event if ($message->attachments) { diff -r 165944ca08e7 -r 3bd5fe8166b8 plugins/calendar/calendar_ui.js --- a/plugins/calendar/calendar_ui.js Sat Jan 13 09:45:02 2018 -0500 +++ b/plugins/calendar/calendar_ui.js Sat Jan 13 17:06:41 2018 -0500 @@ -399,8 +399,7 @@ if (event.location) $('#event-location').html('@ ' + text2html(event.location)).show(); if (event.description) - $('#event-description').show().html(event.description); - //children('.event-text').html(text2html(event.description, 300, 6)); + $('#event-description').show().children('.event-text').html(text2html(event.description, 300, 6)); if (event.vurl) $('#event-url').show().children('.event-text').html(render_link(event.vurl)); @@ -671,6 +670,7 @@ // event details var title = $('#edit-title').val(event.title || ''); var location = $('#edit-location').val(event.location || ''); + var description = $('#edit-description').text(event.description || ''); var vurl = $('#edit-url').val(event.vurl || ''); var categories = $('#edit-categories').val(event.categories); var calendars = $('#edit-calendar').val(event.calendar); @@ -722,16 +722,12 @@ $('