From 3bb0ef8a82ec660ff8ef37b9abc93da94234649a Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 24 Nov 2014 20:40:00 -0800 Subject: Make events export track the current calendar. Turn it and 'new event' into buttons --- view/tpl/event_head.tpl | 3 ++- view/tpl/events-js.tpl | 13 +++++++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) (limited to 'view') diff --git a/view/tpl/event_head.tpl b/view/tpl/event_head.tpl index 6f1d2f22c..bcb1e07f6 100755 --- a/view/tpl/event_head.tpl +++ b/view/tpl/event_head.tpl @@ -24,10 +24,11 @@ eventClick: function(calEvent, jsEvent, view) { showEvent(calEvent.id); }, - + eventRender: function(event, element, view) { //console.log(view.name); if (event.item['author']['xchan_name']==null) return; + switch(view.name){ case "month": element.find(".fc-event-title").html( diff --git a/view/tpl/events-js.tpl b/view/tpl/events-js.tpl index ad41e983a..9812291bf 100755 --- a/view/tpl/events-js.tpl +++ b/view/tpl/events-js.tpl @@ -2,8 +2,17 @@

{{$title}}

- - + + + + +
-- cgit v1.2.3