Double click on day in calendar creats new event starting that day
parent
5837fd4f81
commit
fc4a76c033
|
@ -25,6 +25,11 @@
|
||||||
eventClick: function(calEvent, jsEvent, view) {
|
eventClick: function(calEvent, jsEvent, view) {
|
||||||
showEvent(calEvent.id);
|
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) {
|
eventRender: function(event, element, view) {
|
||||||
//console.log(view.name);
|
//console.log(view.name);
|
||||||
|
|
Loading…
Reference in New Issue