mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-12-26 14:40:29 +01:00
1 line
49 KiB
JavaScript
1 line
49 KiB
JavaScript
|
!function(t,e){var n,r={defaultView:"month",aspectRatio:1.35,header:{left:"title",center:"",right:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberCalculation:"iso",weekNumberTitle:"W",allDayDefault:!0,ignoreTimezone:!0,lazyFetching:!0,startParam:"start",endParam:"end",titleFormat:{month:"MMMM yyyy",week:"MMM d[ yyyy]{ '—'[ MMM] d yyyy}",day:"dddd, MMM d, yyyy"},columnFormat:{month:"ddd",week:"ddd M/d",day:"dddd M/d"},timeFormat:{"":"h(:mm)t"},isRTL:!1,firstDay:0,monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],buttonText:{prev:"<span class='fc-text-arrow'>‹</span>",next:"<span class='fc-text-arrow'>›</span>",prevYear:"<span class='fc-text-arrow'>«</span>",nextYear:"<span class='fc-text-arrow'>»</span>",today:"today",month:"month",week:"week",day:"day"},theme:!1,buttonIcons:{prev:"circle-triangle-w",next:"circle-triangle-e"},unselectAuto:!0,dropAccept:"*",handleWindowResize:!0},a={header:{left:"next,prev today",center:"",right:"title"},buttonText:{prev:"<span class='fc-text-arrow'>›</span>",next:"<span class='fc-text-arrow'>‹</span>",prevYear:"<span class='fc-text-arrow'>»</span>",nextYear:"<span class='fc-text-arrow'>«</span>"},buttonIcons:{prev:"circle-triangle-e",next:"circle-triangle-w"}},o=t.fullCalendar={version:"1.6.7"},i=o.views={};function s(e){t.extend(!0,r,e)}function l(n,r,a){var s=this;s.options=r,s.render=function(e){v?W()&&(Y(),P(e)):function(){r.theme?"ui":"fc",n.addClass("fc"),r.isRTL?n.addClass("fc-rtl"):n.addClass("fc-ltr");r.theme&&n.addClass("ui-widget");v=t("<div class='fc-content' style='position:relative'/>").prependTo(n),l=new c(s,r),(d=l.render())&&n.prepend(d);O(r.defaultView),r.handleWindowResize&&t(window).resize(j);A()||z()}()},s.destroy=function(){h&&(K("viewDestroy",h,h,h.element),h.triggerEventDestroy());t(window).unbind("resize",j),l.destroy(),v.remove(),n.removeClass("fc fc-rtl ui-widget")},s.refetchEvents=function(){U(),Z()},s.reportEvents=function(t){N=t,X()},s.reportEventChange=function(t){I(t)},s.rerenderEvents=I,s.changeView=O,s.select=function(t,n,r){h.select(t,n,r===e||r)},s.unselect=G,s.prev=function(){_(-1)},s.next=function(){_(1)},s.prevYear=function(){p(R,-1),_()},s.nextYear=function(){p(R,1),_()},s.today=function(){R=new Date,_()},s.gotoDate=function(t,e,n){t instanceof Date?R=C(t):S(R,t,e,n);_()},s.incrementDate=function(t,n,r){t!==e&&p(R,t);n!==e&&m(R,n);r!==e&&y(R,r);_()},s.formatDate=function(t,e){return H(t,e,r)},s.formatDates=function(t,e,n){return F(t,e,n,r)},s.getDate=function(){return C(R)},s.getView=function(){return h},s.option=function(t,n){if(n===e)return r[t];"height"!=t&&"contentHeight"!=t&&"aspectRatio"!=t||(r[t]=n,q())},s.trigger=K,function(n,r){var a=this;a.isFetchNeeded=function(t,e){return!i||t<i||e>s},a.fetchEvents=function(t,e){i=t,s=e,y=[];var n=++g,r=h.length;p=r;for(var a=0;a<r;a++)b(h[a],n)},a.addEventSource=function(t){(t=D(t))&&(p++,b(t,g))},a.removeEventSource=function(e){h=t.grep(h,function(t){return!x(t,e)}),y=t.grep(y,function(t){return!x(t.source,e)}),d(y)},a.updateEvent=function(t){var e,n,r=y.length,a=c().defaultEventEnd,o=t.start-t._start,i=t.end?t.end-(t._end||a(t)):0;for(e=0;e<r;e++)(n=y[e])._id==t._id&&n!=t&&(n.start=new Date(+n.start+o),t.end?n.end?n.end=new Date(+n.end+i):n.end=new Date(+a(n)+i):n.end=null,n.title=t.title,n.url=t.url,n.allDay=t.allDay,n.className=t.className,n.editable=t.editable,n.color=t.color,n.backgroundColor=t.backgroundColor,n.borderColor=t.borderColor,n.textColor=t.textColor,S(n));S(t),d(y)},a.renderEvent=function(t,e){S(t),t.source||(e&&(v.events.push(t),t.source=v),y.push(t));d(y)},a.removeEvents=function(e){if(e){if(!t.isFunction(e)){var n=e+"";e=function(t){return t._id==n}}y=t.grep(y,e,!0);for(var r=0;r<h.length;r++)t.isArray(h[r].events)&&(h[
|