From 1c2dc97a4a6e740d97ee29c8b7c4d0e37832ff4c Mon Sep 17 00:00:00 2001 From: Stefan Parviainen Date: Thu, 1 Jan 2015 18:19:17 +0100 Subject: Double click on day in calendar creats new event starting that day --- view/tpl/event_head.tpl | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'view') diff --git a/view/tpl/event_head.tpl b/view/tpl/event_head.tpl index bcb1e07f6..03ea833f9 100755 --- a/view/tpl/event_head.tpl +++ b/view/tpl/event_head.tpl @@ -24,6 +24,11 @@ eventClick: function(calEvent, jsEvent, view) { showEvent(calEvent.id); }, + loading: function(isLoading, view) { + if(!isLoading) { + $('td.fc-day').dblclick(function() { window.location.href='https://caterva.eu/events/new?start='+$(this).data('date'); }); + } + }, eventRender: function(event, element, view) { //console.log(view.name); -- cgit v1.2.3