This commit is contained in:
BoHung Chiu 2022-07-11 15:26:25 +08:00
parent 6e63cf4777
commit b3876c00d0
1 changed files with 5 additions and 5 deletions

View File

@ -173,11 +173,11 @@ var Calendar = function(dom,property_id,currentView,display_hire_event){
c.calendar_dom.calendar.refetchEvents();
},
eventTimeFormat: { hour12: true, hour: '2-digit', minute: '2-digit', omitZeroMinute: true, meridiem: 'narrow' },
eventClick: function(calEvent, e, view) {
if(calEvent.jsEvent && !e){
e = {"originalEvent": calEvent.jsEvent}
}
var el = $(calEvent.el);
eventClick: function(eventClickInfo) {
var calEvent = {"event": eventClickInfo.event},
originalEvent = eventClickInfo.jsEvent,
view = eventClickInfo.view,
el = eventClickInfo.el;
if(el.hasClass("reserve_btn")){
window.calEvent = calEvent;
var start_time = calEvent.event.start;