aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/event_head.tpl
diff options
context:
space:
mode:
authorStefan Parviainen <saparvia@caterva.eu>2015-01-01 18:19:17 +0100
committerStefan Parviainen <saparvia@caterva.eu>2015-01-01 18:19:17 +0100
commit1c2dc97a4a6e740d97ee29c8b7c4d0e37832ff4c (patch)
treef32bd13f4ecfb097099f812904a5efa91774d0e7 /view/tpl/event_head.tpl
parent93b94704878c1b66ee95987de2b24dc39163763a (diff)
downloadvolse-hubzilla-1c2dc97a4a6e740d97ee29c8b7c4d0e37832ff4c.tar.gz
volse-hubzilla-1c2dc97a4a6e740d97ee29c8b7c4d0e37832ff4c.tar.bz2
volse-hubzilla-1c2dc97a4a6e740d97ee29c8b7c4d0e37832ff4c.zip
Double click on day in calendar creats new event starting that day
Diffstat (limited to 'view/tpl/event_head.tpl')
-rwxr-xr-xview/tpl/event_head.tpl5
1 files changed, 5 insertions, 0 deletions
diff --git a/view/tpl/event_head.tpl b/view/tpl/event_head.tpl
index bcb1e07f6..03ea833f9 100755
--- a/view/tpl/event_head.tpl
+++ b/view/tpl/event_head.tpl
@@ -24,6 +24,11 @@
eventClick: function(calEvent, jsEvent, view) {
showEvent(calEvent.id);
},
+ loading: function(isLoading, view) {
+ if(!isLoading) {
+ $('td.fc-day').dblclick(function() { window.location.href='https://caterva.eu/events/new?start='+$(this).data('date'); });
+ }
+ },
eventRender: function(event, element, view) {
//console.log(view.name);