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_form.tpl | 18 ++++++++++--------
view/tpl/event_head.tpl | 8 ++++++++
2 files changed, 18 insertions(+), 8 deletions(-)
(limited to 'view/tpl')
diff --git a/view/tpl/event_form.tpl b/view/tpl/event_form.tpl
index 5ade55870..4f5736ddc 100755
--- a/view/tpl/event_form.tpl
+++ b/view/tpl/event_form.tpl
@@ -6,12 +6,13 @@
{{$desc}}
-
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