/* * FullCalendar v1.2 * http://arshaw.com/fullcalendar/ * * use fullcalendar.css for basic styling * requires jQuery UI core and draggables ONLY if you plan to do drag & drop * * Copyright (c) 2009 Adam Shaw * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * * Date: 2009-05-31 15:56:02 -0500 (Sun, 31 May 2009) * Revision: 23 */ (function(c){c.fn.fullCalendar=function(w){if(typeof w=="string"){var s=Array.prototype.slice.call(arguments,1);var r;this.each(function(){var y=c.data(this,"fullCalendar")[w].apply(this,s);if(typeof r=="undefined"){r=y}});if(typeof r!="undefined"){return r}return this}w=w||{};var t=w.rightToLeft;var m,l;if(t){m=-1;l=6;this.addClass("r2l")}else{m=1;l=0}var x=typeof w.showTime=="undefined"?"guess":w.showTime;var k=typeof w.buttons=="undefined"?true:w.buttons;var v=(w.weekStart||0)%7;var n=w.timeFormat||"gx";var p=w.titleFormat||(t?"Y F":"F Y");var o,j,q,u=true;this.each(function(){var at=w.year?new Date(w.year,w.month||0,1):new Date();var U,M;var L;var aE;var I=false;var V=[];var X=w.eventSources||[];if(w.events){X.push(w.events)}function ax(){aB();af()}function ae(){d(at,-1);ax()}function an(){d(at,1);ax()}function E(){at=new Date();ax()}function az(aF,aG){at=new Date(aF,aG,1);ax()}function aq(){h(at,-1);ax()}function y(){h(at,1);ax()}c.data(this,"fullCalendar",{refresh:ax,prevMonth:ae,nextMonth:an,today:E,gotoMonth:az,prevYear:aq,nextYear:y,addEvent:function(aF){V.push(f(aF));aB();B()},updateEvent:function(aJ){aJ.start=c.fullCalendar.parseDate(aJ.start);aJ.end=c.fullCalendar.parseDate(aJ.end);var aI=aJ.start-aJ._start;var aG=aJ.end-aJ.start;aJ._start=a(aJ.start);for(var aH=0;aH").appendTo(this);if(k){var ac=c("
").appendTo(A);if(k==true||k.today!==false){z=c("