Double click on day in calendar creats new event starting that day

This commit is contained in:
Stefan Parviainen 2015-01-01 18:19:17 +01:00
parent 93b9470487
commit 1c2dc97a4a

View File

@ -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);