From ed810a360f9a52e1e57ea95723d46b68eb586f69 Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 9 Feb 2015 15:57:22 -0800 Subject: event form - provide map ability for location field and add preview ability --- view/tpl/event_head.tpl | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'view/tpl/event_head.tpl') diff --git a/view/tpl/event_head.tpl b/view/tpl/event_head.tpl index 11dba2f9d..77e693b07 100755 --- a/view/tpl/event_head.tpl +++ b/view/tpl/event_head.tpl @@ -12,6 +12,14 @@ ); } + function doEventPreview() { + $('#event-edit-preview').val(1); + $.post('events',$('#event-edit-form').serialize(), function(data) { + $.colorbox({ html: data }); + }); + } + + $(document).ready(function() { $('#events-calendar').fullCalendar({ events: '{{$baseurl}}/events/json/', -- cgit v1.2.3