]> git.mxchange.org Git - friendica.git/commitdiff
Double click on day in calendar creats new event starting that day
authorrabuzarus <rabuzarus@t-online.de>
Thu, 14 May 2015 22:07:41 +0000 (00:07 +0200)
committerrabuzarus <rabuzarus@t-online.de>
Thu, 14 May 2015 22:07:41 +0000 (00:07 +0200)
view/templates/event_head.tpl

index 8085a774b3fbdef72a4b0460e0ee47f11173ef12..dbdc8f6daadb6e28cf0f37ff0483c3c8d8dea38e 100644 (file)
                        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);