Fix bug.
This commit is contained in:
parent
6e63cf4777
commit
b3876c00d0
|
@ -173,11 +173,11 @@ var Calendar = function(dom,property_id,currentView,display_hire_event){
|
||||||
c.calendar_dom.calendar.refetchEvents();
|
c.calendar_dom.calendar.refetchEvents();
|
||||||
},
|
},
|
||||||
eventTimeFormat: { hour12: true, hour: '2-digit', minute: '2-digit', omitZeroMinute: true, meridiem: 'narrow' },
|
eventTimeFormat: { hour12: true, hour: '2-digit', minute: '2-digit', omitZeroMinute: true, meridiem: 'narrow' },
|
||||||
eventClick: function(calEvent, e, view) {
|
eventClick: function(eventClickInfo) {
|
||||||
if(calEvent.jsEvent && !e){
|
var calEvent = {"event": eventClickInfo.event},
|
||||||
e = {"originalEvent": calEvent.jsEvent}
|
originalEvent = eventClickInfo.jsEvent,
|
||||||
}
|
view = eventClickInfo.view,
|
||||||
var el = $(calEvent.el);
|
el = eventClickInfo.el;
|
||||||
if(el.hasClass("reserve_btn")){
|
if(el.hasClass("reserve_btn")){
|
||||||
window.calEvent = calEvent;
|
window.calEvent = calEvent;
|
||||||
var start_time = calEvent.event.start;
|
var start_time = calEvent.event.start;
|
||||||
|
|
Loading…
Reference in New Issue