From: Jan Schneider Date: Fri, 19 Feb 2010 23:12:49 +0000 (+0100) Subject: Add event exporting. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=aea09f7af49a0bd0032d5046204a2f693c5a6f34;p=horde.git Add event exporting. --- diff --git a/kronolith/js/kronolith.js b/kronolith/js/kronolith.js index 4efc3f09f..23873e19c 100644 --- a/kronolith/js/kronolith.js +++ b/kronolith/js/kronolith.js @@ -3330,6 +3330,7 @@ KronolithCore = { d.add(1).hour(); $('kronolithEventEndDate').setValue(d.toString(Kronolith.conf.date_format)); $('kronolithEventEndTime').setValue(d.toString(Kronolith.conf.time_format)); + $('kronolithEventLinkExport').up().hide(); RedBox.showHtml($('kronolithEventDialog').show()); } }, @@ -3444,6 +3445,8 @@ KronolithCore = { $('kronolithEventEndDate').setValue(ev.ed); $('kronolithEventEndTime').setValue(ev.et); $('kronolithEventDescription').setValue(ev.d); + $('kronolithEventLinkExport').up().show(); + $('kronolithEventExport').href = Kronolith.conf.URI_EVENT_EXPORT.interpolate({ id: ev.id, calendar: ev.c, type: ev.ty }); /* Alarm */ if (ev.a) { diff --git a/kronolith/lib/Kronolith.php b/kronolith/lib/Kronolith.php index 6b78aed25..8d003f5fe 100644 --- a/kronolith/lib/Kronolith.php +++ b/kronolith/lib/Kronolith.php @@ -188,6 +188,7 @@ class Kronolith 'URI_IMG' => $registry->getImageDir() . '/', 'URI_SNOOZE' => (string)Horde::url($registry->get('webroot', 'horde') . '/services/snooze.php', true, -1), 'URI_CALENDAR_EXPORT' => (string)Horde::url('data.php', true)->add(array('actionID' => 'export', 'all_events' => 1, 'exportID' => Horde_Data::EXPORT_ICALENDAR, 'exportCal' => '')), + 'URI_EVENT_EXPORT' => str_replace(array('%23', '%7B', '%7D'), array('#', '{', '}'), Horde::url('event.php', true)->add(array('view' => 'ExportEvent', 'eventID' => '#{id}', 'calendar' => '#{calendar}', 'type' => '#{type}'))), 'SESSION_ID' => defined('SID') ? SID : '', 'user' => Horde_Auth::getAuth(), 'prefs_url' => str_replace('&', '&', Horde::getServiceLink('options', 'kronolith')), diff --git a/kronolith/templates/index/edit.inc b/kronolith/templates/index/edit.inc index d07254f9f..43ace61df 100644 --- a/kronolith/templates/index/edit.inc +++ b/kronolith/templates/index/edit.inc @@ -76,6 +76,7 @@
  • +

  • @@ -198,6 +199,12 @@
    + +
    " class="button ok" /> " class="button ko" />