From 5e6c140fc13755f63a87fc9ba25fb6cf14b300eb Mon Sep 17 00:00:00 2001 From: rabuzarus <> Date: Sat, 23 May 2015 20:02:57 +0200 Subject: [PATCH] add double click on calendar day for frost theme --- view/theme/frost/js/theme.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/view/theme/frost/js/theme.js b/view/theme/frost/js/theme.js index 1de9d3a96b..a14a034bc1 100644 --- a/view/theme/frost/js/theme.js +++ b/view/theme/frost/js/theme.js @@ -159,6 +159,11 @@ $(document).ready(function() { 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);