From: rabuzarus Date: Thu, 14 May 2015 22:07:41 +0000 (+0200) Subject: Double click on day in calendar creats new event starting that day X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=fc4a76c033d88832e6dd178daeb1776e389e1300;p=friendica.git Double click on day in calendar creats new event starting that day --- 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);