From: rabuzarus <> Date: Sat, 23 May 2015 18:02:57 +0000 (+0200) Subject: add double click on calendar day for frost theme X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5e6c140fc13755f63a87fc9ba25fb6cf14b300eb;p=friendica.git add double click on calendar day for frost theme --- 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);