From fc4a76c033d88832e6dd178daeb1776e389e1300 Mon Sep 17 00:00:00 2001 From: rabuzarus Date: Fri, 15 May 2015 00:07:41 +0200 Subject: [PATCH] Double click on day in calendar creats new event starting that day --- view/templates/event_head.tpl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/view/templates/event_head.tpl b/view/templates/event_head.tpl index 8085a774b3..dbdc8f6daa 100644 --- a/view/templates/event_head.tpl +++ b/view/templates/event_head.tpl @@ -25,6 +25,11 @@ eventClick: function(calEvent, jsEvent, view) { showEvent(calEvent.id); }, + loading: function(isLoading, view) { + if(!isLoading) { + $('td.fc-day').dblclick(function() { window.location.href='/events/new?start='+$(this).data('date'); }); + } + }, eventRender: function(event, element, view) { //console.log(view.name);