1
1
Fork 0

Merge pull request #1560 from rabuzarus/add_event

Double click on day in calendar creats new event starting that day
This commit is contained in:
Tobias Diekershoff 2015-05-15 08:20:15 +02:00
commit 9575fd4a73

View file

@ -34,6 +34,11 @@
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);