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:
commit
9575fd4a73
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue