javascript - jQuery FullCalendar plugin with Room reservation system -
i'm using fullcalendar resourceviews plugin reservation project , working :d
the problem overlapping. yes there more question in stackoverflow overlapping. mine little different.
i've modified overlapping function resource views plugin.
function isoverlapping(event,calendar){ var array = calendar.fullcalendar('clientevents'); console.log(array) for( in array ) { if( array[i].resource != event.resource ){ if( !(array[i].start >= event.end || array[i].end <= event.start) ){ return true; } } } return false; } but problem cannot allow book same room same date range. please visit fiddle here. can see problem clearly
Comments
Post a Comment