Merge pull request #807 from pafcu/dblclicknewevent
Double click on day in calendar creates new event starting that day
This commit is contained in:
commit
e7081db19b
@ -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);
|
||||
|
Reference in New Issue
Block a user