﻿Type.registerNamespace("Telerik.Web.UI");
Telerik.Web.UI.SchedulerAppointmentEventArgs=function(_1){
Telerik.Web.UI.SchedulerAppointmentEventArgs.initializeBase(this);
this._appointment=_1;
};
Telerik.Web.UI.SchedulerAppointmentEventArgs.prototype={get_Appointment:function(){
return this._appointment;
}};
Telerik.Web.UI.SchedulerAppointmentEventArgs.registerClass("Telerik.Web.UI.SchedulerAppointmentEventArgs",Sys.EventArgs);
Telerik.Web.UI.SchedulerAppointmentCancelEventArgs=function(_2){
Telerik.Web.UI.SchedulerAppointmentCancelEventArgs.initializeBase(this);
this._appointment=_2;
};
Telerik.Web.UI.SchedulerAppointmentCancelEventArgs.prototype={get_Appointment:function(){
return this._appointment;
}};
Telerik.Web.UI.SchedulerAppointmentCancelEventArgs.registerClass("Telerik.Web.UI.SchedulerAppointmentCancelEventArgs",Sys.CancelEventArgs);
Telerik.Web.UI.SchedulerAppointmentClickEventArgs=function(_3){
Telerik.Web.UI.SchedulerAppointmentClickEventArgs.initializeBase(this,[_3]);
};
Telerik.Web.UI.SchedulerAppointmentClickEventArgs.registerClass("Telerik.Web.UI.SchedulerAppointmentClickEventArgs",Telerik.Web.UI.SchedulerAppointmentEventArgs);
Telerik.Web.UI.SchedulerAppointmentInsertingEventArgs=function(_4,_5,_6){
Telerik.Web.UI.SchedulerAppointmentInsertingEventArgs.initializeBase(this);
this._startTime=_4;
this._isAllDay=_5;
this._resource=_6;
};
Telerik.Web.UI.SchedulerAppointmentInsertingEventArgs.prototype={get_StartTime:function(){
return this._startTime;
},get_IsAllDay:function(){
return this._isAllDay;
},get_Resource:function(){
return this._resource;
}};
Telerik.Web.UI.SchedulerAppointmentInsertingEventArgs.registerClass("Telerik.Web.UI.SchedulerAppointmentInsertingEventArgs",Sys.CancelEventArgs);
Telerik.Web.UI.SchedulerAppointmentResizeStartEventArgs=function(_7){
Telerik.Web.UI.SchedulerAppointmentResizeStartEventArgs.initializeBase(this,[_7]);
};
Telerik.Web.UI.SchedulerAppointmentResizeStartEventArgs.registerClass("Telerik.Web.UI.SchedulerAppointmentResizeStartEventArgs",Telerik.Web.UI.SchedulerAppointmentCancelEventArgs);
Telerik.Web.UI.SchedulerAppointmentResizeEndEventArgs=function(_8,_9,_a){
Telerik.Web.UI.SchedulerAppointmentResizeEndEventArgs.initializeBase(this,[_8]);
this._newTime=_9;
this._editingRecurringSeries=_a;
};
Telerik.Web.UI.SchedulerAppointmentResizeEndEventArgs.prototype={get_NewTime:function(){
return this._newTime;
},get_EditingRecurringSeries:function(){
return this._editingRecurringSeries;
}};
Telerik.Web.UI.SchedulerAppointmentResizeEndEventArgs.registerClass("Telerik.Web.UI.SchedulerAppointmentResizeEndEventArgs",Telerik.Web.UI.SchedulerAppointmentCancelEventArgs);
Telerik.Web.UI.SchedulerAppointmentResizingEventArgs=function(_b){
Telerik.Web.UI.SchedulerAppointmentResizingEventArgs.initializeBase(this,[_b]);
};
Telerik.Web.UI.SchedulerAppointmentResizingEventArgs.registerClass("Telerik.Web.UI.SchedulerAppointmentResizingEventArgs",Telerik.Web.UI.SchedulerAppointmentEventArgs);
Telerik.Web.UI.SchedulerAppointmentDeletingEventArgs=function(_c,_d){
Telerik.Web.UI.SchedulerAppointmentDeletingEventArgs.initializeBase(this,[_c]);
this._editingRecurringSeries=_d;
};
Telerik.Web.UI.SchedulerAppointmentDeletingEventArgs.prototype={get_EditingRecurringSeries:function(){
return this._editingRecurringSeries;
}};
Telerik.Web.UI.SchedulerAppointmentDeletingEventArgs.registerClass("Telerik.Web.UI.SchedulerAppointmentDeletingEventArgs",Telerik.Web.UI.SchedulerAppointmentCancelEventArgs);
Telerik.Web.UI.SchedulerAppointmentDeletedEventArgs=function(_e){
Telerik.Web.UI.SchedulerAppointmentDeletedEventArgs.initializeBase(this,[_e]);
};
Telerik.Web.UI.SchedulerAppointmentDeletedEventArgs.registerClass("Telerik.Web.UI.SchedulerAppointmentDeletedEventArgs",Telerik.Web.UI.SchedulerAppointmentEventArgs);
Telerik.Web.UI.SchedulerAppointmentEditingEventArgs=function(_f,_10){
Telerik.Web.UI.SchedulerAppointmentEditingEventArgs.initializeBase(this,[_f]);
this._editingRecurringSeries=_10;
};
Telerik.Web.UI.SchedulerAppointmentEditingEventArgs.prototype={get_EditingRecurringSeries:function(){
return this._editingRecurringSeries;
}};
Telerik.Web.UI.SchedulerAppointmentEditingEventArgs.registerClass("Telerik.Web.UI.SchedulerAppointmentEditingEventArgs",Telerik.Web.UI.SchedulerAppointmentCancelEventArgs);
Telerik.Web.UI.SchedulerTimeSlotClickEventArgs=function(_11){
Telerik.Web.UI.SchedulerTimeSlotClickEventArgs.initializeBase(this);
this._time=_11;
};
Telerik.Web.UI.SchedulerTimeSlotClickEventArgs.prototype={get_Time:function(){
return this._time;
}};
Telerik.Web.UI.SchedulerTimeSlotClickEventArgs.registerClass("Telerik.Web.UI.SchedulerTimeSlotClickEventArgs",Sys.EventArgs);
Telerik.Web.UI.SchedulerAppointmentDoubleClickEventArgs=function(_12){
Telerik.Web.UI.SchedulerAppointmentDoubleClickEventArgs.initializeBase(this,[_12]);
};
Telerik.Web.UI.SchedulerAppointmentDoubleClickEventArgs.registerClass("Telerik.Web.UI.SchedulerAppointmentDoubleClickEventArgs",Telerik.Web.UI.SchedulerAppointmentEventArgs);
Telerik.Web.UI.RadScheduler=function(_13){
Telerik.Web.UI.RadScheduler.initializeBase(this,[_13]);
this._postBackReference=null;
this._minutesPerRow=30;
this._selectedView=null;
this._readOnly=null;
this._overflowBehavior=null;
this._shouldPostbackOnClick=null;
this._displayDeleteConfirmation=null;
this._firstDayStart=null;
this._appointments=null;
this._currentAppointment=null;
this._resources=null;
this._scrollTop=0;
this._localization=null;
this._allowEdit=null;
this._allowDelete=null;
this._allowInsert=null;
this._recurrencePatternPanel=null;
this._recurrencePatternHourlyPanel=null;
this._recurrencePatternDailyPanel=null;
this._recurrencePatternWeeklyPanel=null;
this._recurrencePatternMonthlyPanel=null;
this._recurrencePatternYearlyPanel=null;
this._recurrenceRangePanel=null;
this._repeatFrequencyInputs=new Array();
this._recurrentAppointmentCheckbox=null;
this._allDayEventCheckbox=null;
this._repeatGivenOccurrencesRadio=null;
this._repeatGivenOccurrencesInput=null;
this._repeatUntilGivenDateRadio=null;
this._repeatUntilGivenDateInput=null;
this._repeatUntilGivenDateClientID=null;
this._repeatEveryNthDayRadio=null;
this._repeatEveryNthDayInput=null;
this._repeatEveryNthMonthOnDateRadio=null;
this._repeatEveryNthMonthOnDateInput1=null;
this._repeatEveryNthMonthOnDateInput2=null;
this._repeatEveryNthMonthOnGivenDayRadio=null;
this._repeatEveryNthMonthOnGivenDayInput1=null;
this._repeatEveryNthMonthOnGivenDayInput2=null;
this._repeatEveryNthMonthOnGivenDayInput3=null;
this._repeatEveryYearOnDateRadio=null;
this._repeatEveryYearOnDateInput1=null;
this._repeatEveryYearOnDateInput2=null;
this._repeatEveryYearOnGivenDayRadio=null;
this._repeatEveryYearOnGivenDayInput1=null;
this._repeatEveryYearOnGivenDayInput2=null;
this._repeatEveryYearOnGivenDayInput3=null;
this._startTimeInputClientID=null;
this._endTimeInputClientID=null;
this._inPostback=false;
this._dragging=false;
this._editing=false;
this._draggingAppointment=null;
this._selectedAppointment=null;
this._onDomEventDelegate=null;
this._onKeyboardEventDelegate=null;
this._eventMap={"dblclick":{"rsAptEdit":this._stopEventPropagation,"rsApt":this._onAppointmentDoubleClick,"rsAllDayCell":this._onAllDayRowClick,"rsCell":this._onCellDoubleClick},"click":{"rsAptResize":this._onResizeGripMouseClick,"rsApt":this._onAppointmentClick,"rsAptDelete":this._onAppointmentDeleteClick,"rsArrowTop":this._onPreviousDayClick,"rsArrowBottom":this._onNextDayClick,"rsArrowLeft":this._onPreviousDayClick,"rsArrowRight":this._onNextDayClick,"rsNextDay":this._onNextSchedulerDayClick,"rsPrevDay":this._onPreviousSchedulerDayClick,"rsToday":this._onTodayClick,"rsFullTime":this._onFullTimeLinkClick,"rsAptEdit":this._onEditFormClick,"rsShowMore":this._onShowMoreClick,"rsHeaderDay":this._onDayViewTabClick,"rsHeaderWeek":this._onWeekViewTabClick,"rsHeaderMonth":this._onMonthViewTabClick,"rsCell":this._onCellClick},"mouseover":{"rsCell":this._onRowMouseOver,"rsAllDayCell":this._onAllDayCellMouseOver,"rsApt":this._onAppointmentMouseOver,"rsAptResize":this._onResizeGripMouseOver},"mouseout":{"rsCell":this._onRowMouseOut,"rsAllDayCell":this._onRowMouseOut,"rsApt":this._onAppointmentMouseOut},"mousedown":{"rsAptDelete":this._stopEventPropagation,"rsApt":this._startDrag,"rsAptResize":this._onResizeGripMouseDown},"mouseup":{"rsCell":this._endDrag}};
this._recurrenceActionDialog=new Telerik.Web.UI.RecurrenceActionDialog(this);
};
Telerik.Web.UI.RadScheduler.prototype={_onDomEvent:function(e){
var _15=this._eventMap[e.type];
if(_15){
var _16=e.target;
while(_16&&_16.nodeType!==9){
var _17=_16.className;
var _18=_17.indexOf(" ");
if(_18>=0){
_17=_17.substr(0,_18);
}
var _19=_15[_17];
if(_19){
e.target=_16;
if(_19.call(this,e)!=true){
return;
}
}
_16=_16.parentNode;
}
}
},get_Cells:function(){
if(!this._cells){
var _1a=Telerik.Web.DomElement.getElementByClassName(this.get_element(),"rsContentTable","table");
this._cells=_1a.getElementsByTagName("td");
for(var i=0,_1c=this._cells.length;i<_1c;i++){
this._cells[i].targetRect=Telerik.Web.DomElement.getBounds(this._cells[i]);
}
}
return this._cells;
},initialize:function(){
var _1d=this.get_element();
if(this.get_OverflowBehavior()==1){
var _1e=this.get_id();
_1d.RadShow=function(){
Telerik.Web.UI.RadScheduler.FixHeight(_1e);
Telerik.Web.UI.RadScheduler.FixAdvancedFormHeight(_1e);
};
_1d.RadResize=function(){
Telerik.Web.UI.RadScheduler.FixHeight(_1e);
Telerik.Web.UI.RadScheduler.FixAdvancedFormHeight(_1e);
};
}
Telerik.Web.UI.RadScheduler.callBaseMethod(this,"initialize");
this._initializeDivs(_1d);
var _1f=_1d.getElementsByTagName("div");
if(_1f[0]&&Telerik.Web.DomElement.containsCssClass(_1f[0],"rsAdvancedEdit")){
this._initializeAdvancedFormDivs(_1d);
this._initializeInputs(_1d);
this._initializeDropdowns(_1d);
}else{
this._onDomEventDelegate=Function.createDelegate(this,this._onDomEvent);
for(var _20 in this._eventMap){
$addHandler(_1d,_20,this._onDomEventDelegate);
}
this._onKeyboardEventDelegate=Function.createDelegate(this,this._onKeyboardEvent);
$addHandler(document.documentElement,"keydown",this._onKeyboardEventDelegate);
}
this._onResizeGripMouseMoveDelegate=Function.createDelegate(this,this._onResizeGripMouseMove);
this._onResizeGripMouseUpDelegate=Function.createDelegate(this,this._onResizeGripMouseUp);
this._onSelectStartDelegate=Function.createDelegate(this,this._onSelectStart);
this._onDocMouseUpDelegate=Function.createDelegate(this,this._onDocMouseUp);
this._onDocumentMouseMoveDelegate=Function.createDelegate(this,this._onDocumentMouseMove);
this._glueControlWithRadio(this._repeatGivenOccurrencesInput,this._repeatGivenOccurrencesRadio,true);
this._glueControlWithRadio(this._repeatUntilGivenDateInput,this._repeatUntilGivenDateRadio,true);
this._glueRangeEndDateWithRadio();
this._glueControlWithRadio(this._repeatEveryNthDayInput,this._repeatEveryNthDayRadio,true);
this._glueControlWithRadio(this._repeatEveryNthMonthOnDateInput1,this._repeatEveryNthMonthOnDateRadio,true);
this._glueControlWithRadio(this._repeatEveryNthMonthOnDateInput2,this._repeatEveryNthMonthOnDateRadio,false);
this._glueControlWithRadio(this._repeatEveryNthMonthOnGivenDayInput1,this._repeatEveryNthMonthOnGivenDayRadio,true);
this._glueControlWithRadio(this._repeatEveryNthMonthOnGivenDayInput2,this._repeatEveryNthMonthOnGivenDayRadio,false);
this._glueControlWithRadio(this._repeatEveryNthMonthOnGivenDayInput3,this._repeatEveryNthMonthOnGivenDayRadio,false);
this._glueControlWithRadio(this._repeatEveryYearOnDateInput1,this._repeatEveryYearOnDateRadio,true);
this._glueControlWithRadio(this._repeatEveryYearOnDateInput2,this._repeatEveryYearOnDateRadio,false);
this._glueControlWithRadio(this._repeatEveryYearOnGivenDayInput1,this._repeatEveryYearOnGivenDayRadio,true);
this._glueControlWithRadio(this._repeatEveryYearOnGivenDayInput2,this._repeatEveryYearOnGivenDayRadio,false);
this._glueControlWithRadio(this._repeatEveryYearOnGivenDayInput3,this._repeatEveryYearOnGivenDayRadio,false);
var _21=Telerik.Web.DomElement.getElementByClassName(this.get_element(),"rsContent","div");
if(_21){
_21.scrollTop=this.get_ScrollTop();
}
},_onKeyboardEvent:function(e){
if(e.keyCode==27){
if(this._dragging){
this._abortDrag(e);
}
if(this._resizing){
this._resizingAppointment._setDuration(this._resizingAppointmentDuration);
this._cleanupResize();
}
}
},_initializeDivs:function(_23){
var _24=_23.getElementsByTagName("div");
var _25=_24.length;
for(var i=0;i<_25;i++){
var _27=_24[i];
if(Telerik.Web.DomElement.containsCssClass(_27,"rsApt")){
var _28=this.getAppointmentFromDomElement(_27);
if(_28&&_28.ToolTip){
_27.title=_28.ToolTip;
}
}else{
if(Telerik.Web.DomElement.containsCssClass(_27,"rsAptEdit")){
var _29=_27.getElementsByTagName("textarea")[0];
if(_29){
window.setTimeout(function(){
if(_29&&_29.focus&&_29.parentNode){
_29.focus();
}
},500);
}
}
}
}
if(this.get_OverflowBehavior()==1){
Telerik.Web.UI.RadScheduler.FixHeight(_23.id);
Telerik.Web.UI.RadScheduler.FixAdvancedFormHeight(_23.id);
}
},_initializeAdvancedFormDivs:function(_2a){
var _2b=_2a.getElementsByTagName("div");
var _2c=_2b.length;
for(var i=0;i<_2c;i++){
var div=_2b[i];
if((this._recurrencePatternPanel==null)&&div.id.endsWith("_recurrencePatternPanel")){
this._recurrencePatternPanel=div;
}else{
if((this._recurrencePatternHourlyPanel==null)&&div.id.endsWith("_recurrencePatternHourlyPanel")){
this._recurrencePatternHourlyPanel=div;
}else{
if((this._recurrencePatternDailyPanel==null)&&div.id.endsWith("_recurrencePatternDailyPanel")){
this._recurrencePatternDailyPanel=div;
}else{
if((this._recurrencePatternWeeklyPanel==null)&&div.id.endsWith("_recurrencePatternWeeklyPanel")){
this._recurrencePatternWeeklyPanel=div;
}else{
if((this._recurrencePatternMonthlyPanel==null)&&div.id.endsWith("_recurrencePatternMonthlyPanel")){
this._recurrencePatternMonthlyPanel=div;
}else{
if((this._recurrencePatternYearlyPanel==null)&&div.id.endsWith("_recurrencePatternYearlyPanel")){
this._recurrencePatternYearlyPanel=div;
}else{
if((this._recurrenceRangePanel==null)&&div.id.endsWith("_recurrenceRangePanel")){
this._recurrenceRangePanel=div;
}else{
if((this._startTimeInputClientID==null)&&div.id.endsWith("_startTime_wrapper")){
this._startTimeInputClientID=div.id.substring(0,div.id.indexOf("_wrapper"));
}else{
if((this._endTimeInputClientID==null)&&div.id.endsWith("_endTime_wrapper")){
this._endTimeInputClientID=div.id.substring(0,div.id.indexOf("_wrapper"));
}else{
if((this._repeatUntilGivenDateClientID==null)&&div.id.endsWith("_rangeEndDate_wrapper")){
this._repeatUntilGivenDateClientID=div.id.substring(0,div.id.indexOf("_wrapper"));
}
}
}
}
}
}
}
}
}
}
}
},_onAppointmentClick:function(e){
var _30=this.getAppointmentFromDomElement(e.target);
if(_30.Selected){
this._editAppointmentInline(_30);
return;
}
var _31=new Telerik.Web.UI.SchedulerAppointmentClickEventArgs(_30);
this.raise_AppointmentClick(_31);
if(this.get_ReadOnly()&&this.get_ShouldPostbackOnClick()){
var _32={Command:"Click",AppointmentID:_30._internalID,EditSeries:false};
this.postback(_32);
return;
}
if(this._selectedAppointment){
this._selectedAppointment._unselect();
}
_30._select();
this._selectedAppointment=_30;
},_initializeInputs:function(_33){
var _34=_33.getElementsByTagName("input");
for(var i=0;i<_34.length;i++){
var _36=_34[i];
if(_36.name.endsWith("_repeatFrequency")){
Array.add(this._repeatFrequencyInputs,_36);
$addHandlers(_36,{"click":this._onRecurrencePatternChanged},this);
}else{
if(_36.name.endsWith("_recurrentAppointment")){
this._recurrentAppointmentCheckbox=_36;
$addHandlers(_36,{"click":this._onRecurrenceStateChanged},this);
}else{
if(_36.name.endsWith("_allDayEvent")){
this._allDayEventCheckbox=_36;
$addHandlers(_36,{"click":this._onAllDayStateChanged},this);
}else{
if(_36.id.endsWith("_repeatGivenOccurrences")){
this._repeatGivenOccurrencesRadio=_36;
}else{
if(_36.name.endsWith("_rangeOccurrences")){
this._repeatGivenOccurrencesInput=_36;
}else{
if(_36.id.endsWith("_repeatUntilGivenDate")){
this._repeatUntilGivenDateRadio=_36;
}else{
if(_36.id.endsWith("_rangeEndDate_dateInput_text")){
this._repeatUntilGivenDateInput=_36;
}else{
if(_36.id.endsWith("_repeatEveryNthDay")){
this._repeatEveryNthDayRadio=_36;
}else{
if(_36.name.endsWith("_daylyRepeatInterval")){
this._repeatEveryNthDayInput=_36;
}else{
if(_36.id.endsWith("_repeatEveryNthMonthOnDate")){
this._repeatEveryNthMonthOnDateRadio=_36;
}else{
if(_36.name.endsWith("_monthlyRepeatDate")){
this._repeatEveryNthMonthOnDateInput1=_36;
}else{
if(_36.name.endsWith("_monthlyRepeatIntervalForDate")){
this._repeatEveryNthMonthOnDateInput2=_36;
}else{
if(_36.id.endsWith("_repeatEveryYearOnDate")){
this._repeatEveryYearOnDateRadio=_36;
}else{
if(_36.name.endsWith("_yearlyRepeatDate")){
this._repeatEveryYearOnDateInput2=_36;
}else{
if(_36.id.endsWith("_repeatEveryNthMonthOnGivenDay")){
this._repeatEveryNthMonthOnGivenDayRadio=_36;
}else{
if(_36.name.endsWith("_monthlyRepeatIntervalForGivenDay")){
this._repeatEveryNthMonthOnGivenDayInput3=_36;
}else{
if(_36.id.endsWith("_repeatEveryYearOnGivenDay")){
this._repeatEveryYearOnGivenDayRadio=_36;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
},_initializeDropdowns:function(_37){
var _38=_37.getElementsByTagName("select");
for(var i=0;i<_38.length;i++){
if(_38[i].id.endsWith("_monthlyDayOrdinalDropDown")){
this._repeatEveryNthMonthOnGivenDayInput1=_38[i];
}else{
if(_38[i].id.endsWith("_monthlyDayMaskDropDown")){
this._repeatEveryNthMonthOnGivenDayInput2=_38[i];
}else{
if(_38[i].id.endsWith("_yearlyRepeatMonthForDate")){
this._repeatEveryYearOnDateInput1=_38[i];
}else{
if(_38[i].id.endsWith("_yearlyDayOrdinalDropDown")){
this._repeatEveryYearOnGivenDayInput1=_38[i];
}else{
if(_38[i].id.endsWith("_yearlyDayMaskDropDown")){
this._repeatEveryYearOnGivenDayInput2=_38[i];
}else{
if(_38[i].id.endsWith("_yearlyRepeatMonthForGivenDay")){
this._repeatEveryYearOnGivenDayInput3=_38[i];
}
}
}
}
}
}
}
},_glueControlWithRadio:function(_3a,_3b,_3c){
if(_3a&&_3b){
$addHandlers(_3a,{"click":function(e){
_3b.checked=true;
_3a.focus();
}},this);
if(_3c==true){
$addHandlers(_3b,{"click":function(e){
_3a.focus();
}},this);
}
}
},_glueRangeEndDateWithRadio:function(){
if(!this._repeatUntilGivenDateClientID){
return;
}
var _3f=$get(this._repeatUntilGivenDateClientID+"_CalendarPopupButton");
if(_3f){
$addHandlers(_3f,{"click":function(e){
this._repeatUntilGivenDateRadio.checked=true;
this._repeatUntilGivenDateInput.focus();
}},this);
}
},_onRecurrencePatternChanged:function(e){
this._recurrencePatternHourlyPanel.style.display="none";
this._recurrencePatternDailyPanel.style.display="none";
this._recurrencePatternWeeklyPanel.style.display="none";
this._recurrencePatternMonthlyPanel.style.display="none";
this._recurrencePatternYearlyPanel.style.display="none";
switch(e.target.value){
case "_repeatFrequencyHourly":
this._recurrencePatternHourlyPanel.style.display="block";
break;
case "_repeatFrequencyDaily":
this._recurrencePatternDailyPanel.style.display="block";
break;
case "_repeatFrequencyWeekly":
this._recurrencePatternWeeklyPanel.style.display="block";
break;
case "_repeatFrequencyMonthly":
this._recurrencePatternMonthlyPanel.style.display="block";
break;
case "_repeatFrequencyYearly":
this._recurrencePatternYearlyPanel.style.display="block";
break;
}
},_onRecurrenceStateChanged:function(e){
if(e.target.checked){
this._recurrencePatternPanel.style.display="block";
this._recurrenceRangePanel.style.display="block";
}else{
this._recurrencePatternPanel.style.display="none";
this._recurrenceRangePanel.style.display="none";
}
},_onAllDayStateChanged:function(e){
if(e.target.checked){
var _44=$find(this._startTimeInputClientID);
if(_44){
_44.Disable();
}
var _45=$find(this._endTimeInputClientID);
if(_45){
_45.Disable();
}
}else{
var _44=$find(this._startTimeInputClientID);
if(_44){
_44.Enable();
}
var _45=$find(this._endTimeInputClientID);
if(_45){
_45.Enable();
}
}
},_onEditFormClick:function(e){
e.stopPropagation();
},_removeMonthCellHover:function(){
if(this._currentHoverCell){
Telerik.Web.DomElement.removeCssClass(this._currentHoverCell,"rsAptCreate");
}
},_onMonthCellMouseOver:function(e){
if(Telerik.Web.DomElement.containsCssClass(e.target,"rsWrap")){
this._currentHoverDiv=e.target;
this._currentHoverCell=e.target.parentNode;
Telerik.Web.DomElement.addCssClass(this._currentHoverCell,"rsAptCreate");
}
},_getHourCellFromDomElement:function(_48){
var _49=_48;
while(_49.tagName.toLowerCase()!="th"){
_49=_49.parentNode;
}
return _49;
},_onAllDayCellMouseOver:function(e){
if(this._dragging&&this._draggingAppointment){
e.target.lastChild.appendChild(this._draggingAppointment._domElement);
}
this._onRowMouseOver(e);
},_onRowMouseOver:function(e){
if(this._dragging){
return;
}
if(!this._resizing){
this._removeRowHover();
this._currentHoverDiv=e.target;
this._currentHoverCell=e.target;
this._nextHoverCell=this._getNextRowCell(this._currentHoverCell);
if(Telerik.Web.DomElement.containsCssClass(this._currentHoverCell.parentNode,"rsAllDay")){
this._nextHoverCell=null;
}
Telerik.Web.DomElement.addCssClass(this._currentHoverCell,"rsAptCreate");
if(this._nextHoverCell&&this.get_SelectedView()!="MonthView"){
Telerik.Web.DomElement.addCssClass(this._nextHoverCell,"rsAptCreate");
}
}
},_getNextRowCell:function(_4c){
var _4d=_4c.parentNode;
var _4e=_4d.parentNode;
while(_4e.tagName.toLowerCase()!="table"){
_4e=_4e.parentNode;
}
var _4f=_4e.rows[_4d.rowIndex+1];
var _50=null;
if(_4f){
var _51=_4f.cells.length;
var _52=_4d.cells.length;
if(_51==_52){
_50=_4f.cells[_4c.cellIndex];
}else{
if(_51<_52){
_50=_4f.cells[_4c.cellIndex-1];
}else{
_50=_4f.cells[_4c.cellIndex+1];
}
}
}
return _50;
},_onRowMouseOut:function(e){
try{
var _54=e.rawEvent.relatedTarget?e.rawEvent.relatedTarget:e.rawEvent.toElement;
if(!_54||!this._currentHoverCell||Telerik.Web.DomUtility.isDescendant(this._currentHoverDiv,_54)){
return;
}
this._removeRowHover();
}
catch(ex){
return;
}
},_removeRowHover:function(){
if(this._currentHoverCell){
Telerik.Web.DomElement.removeCssClass(this._currentHoverCell,"rsAptCreate");
}
this._currentHoverCell=null;
if(this._nextHoverCell){
Telerik.Web.DomElement.removeCssClass(this._nextHoverCell,"rsAptCreate");
}
this._nextHoverCell=null;
},_stopEventPropagation:function(e){
e.stopPropagation();
},_onResizeGripMouseDown:function(e){
if(this.get_ReadOnly()){
return;
}
this._resizingElement=this.getAppointmentDomElement(e.target);
var _57=this.getAppointmentFromDomElement(this._resizingElement);
var _58=(_57.get_AllowEdit()!=null)?_57.get_AllowEdit():this.get_AllowEdit();
if(!_58){
return;
}
var _59=new Telerik.Web.UI.SchedulerAppointmentResizeStartEventArgs(_57);
this.raise_AppointmentResizeStart(_59);
if(_59.get_cancel()==false){
this._clientY=e.clientY;
this._resizing=true;
this._resizingAppointment=_57;
this._resizingAppointmentDuration=_57._getDuration();
this._targetHeight=this._resizingElement.offsetHeight;
$addHandler(document,"mousemove",this._onResizeGripMouseMoveDelegate);
$addHandler(document,"mouseup",this._onResizeGripMouseUpDelegate);
$addHandler(document,"selectstart",this._onSelectStartDelegate);
}
},_onResizeGripMouseMove:function(e){
if(!this._resizingElement){
return;
}
var _5b=parseInt(this._resizingElement.style.paddingBottom);
var _5c=this._resizingElement.parentNode.parentNode.offsetHeight;
var _5d=TelerikCommonScripts.getBorderWidth(this._resizingElement.parentNode.parentNode,Telerik.Web.BoxSide.Bottom);
var _5e=_5c*this.RowCount-this.getRowIndex(this._resizingElement)*_5c-_5d;
if(isNaN(_5b)){
_5b=0;
}
var _5f=e.clientY-this._clientY;
this._targetHeight=this._targetHeight+_5f;
var _60=(Math.floor(this._targetHeight/_5c)*_5c);
var _61=_60+_5c;
var _62;
if(Math.abs(_60-this._targetHeight)<Math.abs(_61-this._targetHeight)){
_62=_60;
}else{
_62=_61;
}
if(_62<_5c){
_62=_5c-1;
}
if(_62>_5e){
_62=_5e;
}
this._resizingElement.style.height=_62-_5b+"px";
var _63=Telerik.Web.DomElement.getElementByClassName(this._resizingElement,"rsAptBottom","div");
this._fixIEBottom(_63);
this._clientY=e.clientY;
this._keepElementInView(this._resizingElement,true);
this.raise_AppointmentResizing(new Telerik.Web.UI.SchedulerAppointmentResizingEventArgs(this._resizingAppointment));
},_onSelectStart:function(e){
return false;
},_onResizeGripMouseUp:function(e){
if(!this._resizingElement){
return;
}
var _66=this._resizingElement.parentNode.parentNode.offsetHeight;
var _67=this.getRowIndex(this._resizingElement);
var _68=Math.floor((this._resizingElement.offsetHeight/_66)*this.get_MinutesPerRow());
var _69=Math.floor(_68/60);
var _6a=_68%60;
if(_6a%this.get_MinutesPerRow()>0){
_6a=(Math.floor(_6a/this.get_MinutesPerRow())+1)*this.get_MinutesPerRow();
if(_6a==60){
_6a=0;
_69++;
}
}
var _6b=this.getAppointmentFromDomElement(this._resizingElement);
var _6c=this._getCellTimeFromDomElement(this._resizingElement);
var _6d;
if(_6c>_6b.Start){
_6d=_6c;
}else{
_6d=_6b.Start;
}
Telerik.Web.UI.RadScheduler.IncrementTime(_6d,_69,_6a);
var _6e={OnConfirm:this._onAppointmentResizeCallback,OnAbort:this._onAppointmentResizeAbortCallback,Scheduler:this,Appointment:_6b,UpdatedEndDate:_6d,ResizingAppointmentDuration:this._resizingAppointmentDuration};
if(_6b._recurrenceState==1||_6b._recurrenceState==2){
this._recurrenceActionDialog.ConfirmRecurrenceAction(Telerik.Web.UI.RecurrenceAction.Resize,_6e);
}else{
this._onAppointmentResizeCallback(false,_6e);
}
e.stopPropagation();
this._cleanupResize();
},_cleanupResize:function(){
this._resizing=false;
this._resizingElement=null;
this._resizingAppointment=null;
$removeHandler(document,"mousemove",this._onResizeGripMouseMoveDelegate);
$removeHandler(document,"mouseup",this._onResizeGripMouseUpDelegate);
$removeHandler(document,"selectstart",this._onSelectStartDelegate);
},_onAppointmentResizeCallback:function(_6f,_70){
var _71=new Telerik.Web.UI.SchedulerAppointmentResizeEndEventArgs(_70.Appointment,_70.UpdatedEndDate,_6f);
_70.Scheduler.raise_AppointmentResizeEnd(_71);
if(_71.get_cancel()==false){
var _72={Command:"Resize",AppointmentID:_70.Appointment._internalID,EndDate:_70.UpdatedEndDate,EditSeries:_6f};
_70.Scheduler.postback(_72);
}else{
_70.Appointment._setDuration(_70.ResizingAppointmentDuration);
}
},_onAppointmentResizeAbortCallback:function(_73){
_73.Appointment._setDuration(_73.ResizingAppointmentDuration);
},_onResizeGripMouseClick:function(e){
e.stopPropagation();
},_onResizeGripMouseOver:function(e){
e.target.style.cursor="s-resize";
e.stopPropagation();
},_fixIEBottom:function(_76){
if(Telerik.Web.Browser.agent==Telerik.Web.Browser.InternetExplorer&&Telerik.Web.Browser.version<7){
if(_76.parentNode.parentNode.offsetHeight%2!=0){
_76.style.bottom="-1px";
}else{
_76.style.bottom="0px";
}
}
},getScrollOffset:function(_77,_78){
var _79=_77.scrollLeft;
var top=_77.scrollTop;
if(_78){
var _7b=_77.parentNode;
while(_7b!=null&&_7b.scrollLeft!=null){
_79+=_7b.scrollLeft;
top+=_7b.scrollTop;
if(_7b==document.body&&(_79!=0&&top!=0)){
break;
}
_7b=_7b.parentNode;
}
}
return {x:_79,y:top};
},_getHoveredCell:function(_7c,_7d){
var _7e=this.get_Cells();
var _7f=this.getScrollOffset(document.body,true);
for(var i=0,_81=_7e.length;i<_81;i++){
var _82=_7e[i].targetRect;
var x=_7c;
var y=_7d;
x+=_7f.x;
y+=_7f.y;
var _85=_82.y+_82.height;
var _86=_82.x+_82.width;
if(x>=_82.x&&x<=_86&&y>=_82.y&&y<=_85){
return _7e[i];
}
}
return null;
},_onDocumentMouseMove:function(e){
var _88=this.get_Cells();
var _89=this.getScrollOffset(document.body,true);
if(this._dragging&&this._draggingAppointment){
for(var i=0,_8b=_88.length;i<_8b;i++){
var _8c=_88[i].targetRect;
var x=e.clientX;
var y=e.clientY;
x+=_89.x;
y+=_89.y;
var _8f=_8c.y+_8c.height;
var _90=_8c.x+_8c.width;
if(x>=_8c.x&&x<=_90&&y>=_8c.y&&y<=_8f){
var _91=0;
if(this._dragOrigin){
_91=this._draggingAppointment._originalParent.parentNode.parentNode.rowIndex+(_88[i].parentNode.rowIndex-this._dragOrigin.parentNode.rowIndex);
}else{
this._dragOrigin=_88[i].parentNode.cells[0];
}
if(_91<0){
_91=0;
}
var _92=_88[i].parentNode.parentNode.rows[_91].cells[_88[i].cellIndex];
if(_92.firstChild==this._draggingAppointment._domElement.parentNode){
return;
}
if(_92.firstChild.nodeType==3){
_92.removeChild(_92.firstChild);
var _93=this._draggingAppointment._domElement.parentNode.cloneNode(false);
_93.style.zIndex=999;
if(Telerik.Web.Browser.agent==Telerik.Web.Browser.Firefox){
_93.style.height=_92.clientHeight+"px";
}
_92.appendChild(_93);
}
if(this.get_SelectedView()!="MonthView"){
_92.firstChild.appendChild(this._draggingAppointment._domElement);
}else{
_92.childNodes[1].appendChild(this._draggingAppointment._domElement);
}
this._keepElementInView(this._draggingAppointment._domElement);
return;
}
}
}
},_keepElementInView:function(_94,_95){
var _96=Telerik.Web.DomElement.getElementByClassName(this.get_element(),"rsContent","div");
var _97=_94.parentNode.parentNode.offsetTop;
var _98=_94.offsetHeight;
var _99=_97+_98;
var _9a=_96.clientHeight+_96.scrollTop;
var _9b=_94.parentNode.parentNode.offsetHeight;
if(!_95&&_97<_96.scrollTop){
_96.scrollTop=_97;
}
if(_99>_9a){
var _9c=_96.scrollTop+(_99-_9a);
if((_96.clientHeight+_9c)>_96.scrollHeight){
return;
}
if(!_95&&_9c>_97){
_9c=_97;
}
_96.scrollTop=_9c;
}
if(_95&&(_99-_9b)<_96.scrollTop){
_96.scrollTop=_99-_9b;
}
},_startDrag:function(e){
if(this.get_ReadOnly()){
return;
}
var _9e=this.getAppointmentFromDomElement(e.target);
var _9f=(_9e.get_AllowEdit()!=null)?_9e.get_AllowEdit():this.get_AllowEdit();
if(!_9f){
return;
}
$addHandler(document,"selectstart",this._onSelectStartDelegate);
$addHandler(document,"mouseup",this._onDocMouseUpDelegate);
$addHandler(document,"mousemove",this._onDocumentMouseMoveDelegate);
this._draggingAppointment=_9e;
this._dragOrigin=this._getHoveredCell(e.clientX,e.clientY);
this._dragging=true;
_9e._startDrag();
},_endDrag:function(e){
this._finishDrag(e,false);
},_onDocMouseUp:function(e){
this._finishDrag(e,false);
},_abortDrag:function(e){
this._finishDrag(e,true);
},_finishDrag:function(e,_a4){
if(this._dragging){
$removeHandler(document,"selectstart",this._onSelectStartDelegate);
$removeHandler(document,"mouseup",this._onDocMouseUpDelegate);
$removeHandler(document,"mousemove",this._onDocumentMouseMoveDelegate);
if(!_a4&&this._draggingAppointment._domElement.parentNode&&this._draggingAppointment._domElement.parentNode.parentNode){
var _a5=this._draggingAppointment._domElement.parentNode.parentNode;
this._draggingAppointment._endDrag(_a5);
}else{
this._draggingAppointment._abortDrag();
}
this._draggingAppointment=null;
this._dragging=false;
e.preventDefault();
e.stopPropagation();
}
},_onAppointmentDoubleClick:function(e){
if(this._resizing){
this._resizing=false;
e.stopPropagation();
return;
}
this._clearSelection();
var _a7=this.getAppointmentFromDomElement(e.target);
var _a8=new Telerik.Web.UI.SchedulerAppointmentDoubleClickEventArgs(_a7);
this.raise_AppointmentDoubleClick(_a8);
this._editAppointmentInline(_a7);
e.stopPropagation();
},_editAppointmentInline:function(_a9){
if(this.get_ReadOnly()){
return;
}
if(_a9){
var _aa=(_a9.get_AllowEdit()!=null)?_a9.get_AllowEdit():this.get_AllowEdit();
if(!_aa){
return;
}
var _ab={OnConfirm:this._onAppointmentEditCallback,Scheduler:this,Appointment:_a9};
if(_a9._recurrenceState==1||_a9._recurrenceState==2||_a9._recurrenceState==3){
this._recurrenceActionDialog.ConfirmRecurrenceAction(Telerik.Web.UI.RecurrenceAction.Edit,_ab);
}else{
this._onAppointmentEditCallback(false,_ab);
}
}
},_onAppointmentEditCallback:function(_ac,_ad){
if(!this._editing){
this._editing=true;
var _ae=new Telerik.Web.UI.SchedulerAppointmentEditingEventArgs(_ad.Appointment,_ac);
_ad.Scheduler.raise_AppointmentEditing(_ae);
if(_ae.get_cancel()==false){
var _af={Command:"Edit",AppointmentID:_ad.Appointment._internalID,EditSeries:_ac};
_ad.Scheduler.postback(_af);
}
}
},_clearSelection:function(){
if(document.selection&&document.selection.empty){
document.selection.empty();
}else{
if(window.getSelection&&window.getSelection().removeAllRanges){
window.getSelection().removeAllRanges();
}
}
},_onShowMoreClick:function(e){
var _b1=this._getCellTimeFromDomElement(e.target);
var _b2={Command:"SwitchToSelectedDay",StartDate:_b1};
this.postback(_b2);
},_onAppointmentMouseOver:function(e){
if(this._resizing||this._dragging){
e.stopPropagation();
return;
}
var _b4=this.getAppointmentDomElement(e.target);
var _b5=this.getAppointmentFromDomElement(_b4);
var _b6=(_b5.get_AllowDelete()!=null)?_b5.get_AllowDelete():this.get_AllowDelete();
if(!_b6){
return;
}
this._hoveredAppointmentElement=_b4;
var _b7=Telerik.Web.DomElement.getElementByClassName(_b4,"rsAptDelete","a");
if(_b7){
_b7.style.visibility="visible";
}
},_onAppointmentMouseOut:function(e){
var _b9=e.rawEvent.relatedTarget?e.rawEvent.relatedTarget:e.rawEvent.toElement;
if(!_b9||Telerik.Web.DomUtility.isDescendant(this._hoveredAppointmentElement,_b9)){
return;
}else{
var _ba=this.getAppointmentDomElement(e.target);
var _bb=Telerik.Web.DomElement.getElementByClassName(_ba,"rsAptDelete","a");
if(_bb){
_bb.style.visibility="hidden";
}
}
},getAppointmentDomElement:function(_bc){
while(_bc&&!Telerik.Web.DomElement.containsCssClass(_bc,"rsApt")){
_bc=_bc.parentNode;
}
return _bc;
},_getCellCoordinates:function(_bd){
while(_bd&&(_bd.tagName.toLowerCase()!="td")){
_bd=_bd.parentNode;
}
if(_bd){
var _be=_bd.cellIndex;
var _bf=_bd.parentNode.rowIndex;
return {cellIndex:_be,rowIndex:_bf};
}
return -1;
},getRowIndex:function(_c0){
while(_c0&&_c0.tagName.toLowerCase()!="tr"){
_c0=_c0.parentNode;
}
if(_c0&&Telerik.Web.DomElement.containsCssClass(_c0,"rsRow")){
return _c0.rowIndex;
}
return -1;
},getAppointmentFromDomElement:function(_c1){
if(!_c1){
return null;
}
var _c2=this.getAppointmentDomElement(_c1);
var _c3=this.get_Appointments();
for(var i=0;i<_c3.length;i++){
if(!_c3[i]._domElement){
continue;
}
for(var _c5=0;_c5<_c3[i]._domElements.length;_c5++){
if(_c2.id==_c3[i]._domElements[_c5]){
return _c3[i];
}
}
}
return null;
},_getCellTimeFromDomElement:function(_c6){
var _c7=new Date(this.get_FirstDayStart().getTime());
var _c8=this._getCellCoordinates(_c6);
if(this.get_SelectedView()=="MonthView"){
var _c9=24*7*_c8.rowIndex;
var _ca=24*_c8.cellIndex;
Telerik.Web.UI.RadScheduler.IncrementTime(_c7,_c9+_ca);
}else{
if(this.get_SelectedView()=="ResourceView"){
var _cb=_c8.rowIndex*this.get_MinutesPerRow();
Telerik.Web.UI.RadScheduler.IncrementTime(_c7,0,_cb);
}else{
var _cb=_c8.rowIndex*this.get_MinutesPerRow();
Telerik.Web.UI.RadScheduler.IncrementTime(_c7,24*_c8.cellIndex,_cb);
}
}
return _c7;
},_onCellClick:function(e){
var _cd=this._getCellTimeFromDomElement(e.target);
var _ce=new Telerik.Web.UI.SchedulerTimeSlotClickEventArgs(_cd);
this.raise_TimeSlotClick(_ce);
},_onCellDoubleClick:function(e){
if(!this.get_ReadOnly()&&this.get_AllowInsert()){
if(this.get_SelectedView()=="MonthView"){
this._onAllDayRowClick(e);
return;
}
var _d0=this._getCellTimeFromDomElement(e.target);
var _d1=null;
if(this.get_SelectedView()=="ResourceView"&&this.get_Resources()){
var _d2=this._getCellCoordinates(e.target).cellIndex;
_d1=this.get_Resources()[_d2];
}
var _d3=new Telerik.Web.UI.SchedulerAppointmentInsertingEventArgs(_d0,false,_d1);
this.raise_AppointmentInserting(_d3);
if(_d3.get_cancel()==false){
var _d4={Command:"AddAppointment",AppointmentID:-1,StartDate:_d0};
if(_d1){
_d4.ResourceKey=_d1.InternalKey;
}
this.postback(_d4);
}
}
e.stopPropagation();
},_onAllDayRowClick:function(e){
if(!this.get_ReadOnly()&&this.get_AllowInsert()){
var _d6=this._getCellTimeFromDomElement(e.target);
var _d7=null;
if(this.get_SelectedView()=="ResourceView"&&this.get_Resources()){
var _d8=this._getCellCoordinates(e.target).cellIndex;
_d7=this.get_Resources()[_d8];
}
var _d9=new Telerik.Web.UI.SchedulerAppointmentInsertingEventArgs(_d6,true,_d7);
this.raise_AppointmentInserting(_d9);
if(_d9.get_cancel()==false){
var _da={Command:"AddAllDayAppointment",AppointmentID:-1,StartDate:_d6};
if(_d7){
_da.ResourceKey=_d7.InternalKey;
}
this.postback(_da);
}
}
e.stopPropagation();
},_onAppointmentDeleteClick:function(e){
if(!this.get_ReadOnly()){
var _dc=this.getAppointmentFromDomElement(e.target);
if(_dc){
var _dd={OnConfirm:this._onAppointmentDeleteCallback,Scheduler:this,Appointment:_dc};
if(_dc._recurrenceState==1||_dc._recurrenceState==2||_dc._recurrenceState==3){
this._recurrenceActionDialog.ConfirmRecurrenceAction(Telerik.Web.UI.RecurrenceAction.Delete,_dd);
}else{
if(this.get_DisplayDeleteConfirmation()){
this._recurrenceActionDialog.ConfirmDelete(_dd);
}else{
this._onAppointmentDeleteCallback(false,_dd);
}
}
}
}
e.stopPropagation();
e.preventDefault();
},_onAppointmentDeleteCallback:function(_de,_df){
var _e0=new Telerik.Web.UI.SchedulerAppointmentDeletingEventArgs(_df.Appointment,_de);
_df.Scheduler.raise_AppointmentDeleting(_e0);
if(_e0.get_cancel()==false){
var _e1={Command:"Delete",AppointmentID:_df.Appointment._internalID,EditSeries:_de};
_df.Scheduler.postback(_e1);
}
},_onPreviousDayClick:function(e){
var _e3=this.getAppointmentFromDomElement(e.target);
if(_e3){
var _e4={Command:"GoToPrevious",AppointmentID:_e3._internalID};
this.postback(_e4);
}
e.stopPropagation();
e.preventDefault();
},_onNextDayClick:function(e){
var _e6=this.getAppointmentFromDomElement(e.target);
if(_e6){
var _e7={Command:"GoToNext",AppointmentID:_e6._internalID};
this.postback(_e7);
}
e.stopPropagation();
e.preventDefault();
},_onDayViewTabClick:function(e){
var _e9={Command:"SwitchToDayView"};
this.postback(_e9);
e.stopPropagation();
e.preventDefault();
},_onWeekViewTabClick:function(e){
var _eb={Command:"SwitchToWeekView"};
this.postback(_eb);
e.stopPropagation();
e.preventDefault();
},_onMonthViewTabClick:function(e){
var _ed={Command:"SwitchToMonthView"};
this.postback(_ed);
e.stopPropagation();
e.preventDefault();
},_onPreviousSchedulerDayClick:function(e){
var _ef={Command:"NavigateToPreviousPeriod"};
this.postback(_ef);
e.stopPropagation();
e.preventDefault();
},_onNextSchedulerDayClick:function(e){
var _f1={Command:"NavigateToNextPeriod"};
this.postback(_f1);
e.stopPropagation();
e.preventDefault();
},_onTodayClick:function(e){
var _f3={Command:"GoToToday"};
this.postback(_f3);
e.stopPropagation();
e.preventDefault();
},_onFullTimeLinkClick:function(e){
var _f5={Command:"SwitchFullTime"};
this.postback(_f5);
e.stopPropagation();
e.preventDefault();
},postback:function(_f6){
var _f7=Telerik.Web.DomElement.getElementByClassName(this.get_element(),"rsContent","div");
_f6.ScrollTop=_f7.scrollTop;
this._inPostback=true;
var _f8=this.get_PostBackReference().replace("arguments",Sys.Serialization.JavaScriptSerializer.serialize(_f6));
eval(_f8);
},dispose:function(){
var _f9=this.get_element();
if(this._onKeyboardEventDelegate){
$removeHandler(document.documentElement,"keydown",this._onKeyboardEventDelegate);
}
if(this._onDomEventDelegate){
for(var _fa in this._eventMap){
$removeHandler(_f9,_fa,this._onDomEventDelegate);
}
}
this._recurrenceActionDialog.dispose();
this._disposeRecurrenceControls();
Telerik.Web.UI.RadScheduler.callBaseMethod(this,"dispose");
},_disposeRecurrenceControls:function(){
if(this._repeatFrequencyInputs){
Array.forEach(this._repeatFrequencyInputs,function(_fb){
$clearHandlers(_fb);
},this);
this._repeatFrequencyInputs=null;
}
var _fc=$get(this._repeatUntilGivenDateClientID+"_CalendarPopupButton");
if(_fc){
$clearHandlers(_fc);
}
this._clearHandlersSafe(this._repeatGivenOccurrencesRadio);
this._clearHandlersSafe(this._repeatGivenOccurrencesInput);
this._repeatGivenOccurrencesRadio=null;
this._repeatGivenOccurrencesInput=null;
this._clearHandlersSafe(this._repeatUntilGivenDateRadio);
this._clearHandlersSafe(this._repeatUntilGivenDateInput);
this._repeatUntilGivenDateRadio=null;
this._repeatUntilGivenDateInput=null;
this._clearHandlersSafe(this._repeatEveryNthDayRadio);
this._clearHandlersSafe(this._repeatEveryNthDayInput);
this._repeatEveryNthDayRadio=null;
this._repeatEveryNthDayInput=null;
this._clearHandlersSafe(this._repeatEveryNthMonthOnDateRadio);
this._clearHandlersSafe(this._repeatEveryNthMonthOnDateInput1);
this._clearHandlersSafe(this._repeatEveryNthMonthOnDateInput2);
this._repeatEveryNthMonthOnDateRadio=null;
this._repeatEveryNthMonthOnDateInput1=null;
this._repeatEveryNthMonthOnDateInput2=null;
this._clearHandlersSafe(this._repeatEveryNthMonthOnGivenDayRadio);
this._clearHandlersSafe(this._repeatEveryNthMonthOnGivenDayInput1);
this._clearHandlersSafe(this._repeatEveryNthMonthOnGivenDayInput2);
this._clearHandlersSafe(this._repeatEveryNthMonthOnGivenDayInput3);
this._repeatEveryNthMonthOnGivenDayRadio=null;
this._repeatEveryNthMonthOnGivenDayInput1=null;
this._repeatEveryNthMonthOnGivenDayInput2=null;
this._repeatEveryNthMonthOnGivenDayInput3=null;
this._clearHandlersSafe(this._repeatEveryYearOnDateRadio);
this._clearHandlersSafe(this._repeatEveryYearOnDateInput1);
this._clearHandlersSafe(this._repeatEveryYearOnDateInput2);
this._repeatEveryYearOnDateRadio=null;
this._repeatEveryYearOnDateInput1=null;
this._repeatEveryYearOnDateInput2=null;
this._clearHandlersSafe(this._repeatEveryYearOnGivenDayRadio);
this._clearHandlersSafe(this._repeatEveryYearOnGivenDayInput1);
this._clearHandlersSafe(this._repeatEveryYearOnGivenDayInput2);
this._clearHandlersSafe(this._repeatEveryYearOnGivenDayInput3);
this._repeatEveryYearOnGivenDayRadio=null;
this._repeatEveryYearOnGivenDayInput1=null;
this._repeatEveryYearOnGivenDayInput2=null;
this._repeatEveryYearOnGivenDayInput3=null;
this._clearHandlersSafe(this._recurrentAppointmentCheckbox);
this._clearHandlersSafe(this._allDayEventCheckbox);
this._recurrentAppointmentCheckbox=null;
this._allDayEventCheckbox=null;
this._recurrencePatternPanel=null;
this._recurrencePatternHourlyPanel=null;
this._recurrencePatternDailyPanel=null;
this._recurrencePatternWeeklyPanel=null;
this._recurrencePatternMonthlyPanel=null;
this._recurrencePatternYearlyPanel=null;
this._recurrenceRangePanel=null;
this._repeatFrequencyInput=null;
},_clearHandlersSafe:function(_fd){
if(_fd){
$clearHandlers(_fd);
}
},set_Appointments:function(_fe){
this._appointments=[];
var _ff=Sys.Serialization.JavaScriptSerializer.deserialize(_fe);
for(var i=0;i<_ff.length;i++){
var _101=new Telerik.Web.UI.SchedulerAppointment(_ff[i],this);
this._appointments[i]=_101;
}
},get_Appointments:function(){
return this._appointments;
},set_Resources:function(_102){
this._resources=Sys.Serialization.JavaScriptSerializer.deserialize(_102);
},get_Resources:function(){
return this._resources;
},set_FirstDayStart:function(_103){
this._firstDayStart=Sys.Serialization.JavaScriptSerializer.deserialize(_103);
},get_FirstDayStart:function(){
return this._firstDayStart;
},set_CurrentAppointment:function(_104){
this._currentAppointment=Sys.Serialization.JavaScriptSerializer.deserialize(_104);
},get_CurrentAppointment:function(){
return this._currentAppointment;
},get_Localization:function(){
return this._localization;
},set_Localization:function(_105){
this._localization=Sys.Serialization.JavaScriptSerializer.deserialize(_105);
},get_ScrollTop:function(){
return this._scrollTop;
},set_ScrollTop:function(_106){
this._scrollTop=_106;
},get_DisplayDeleteConfirmation:function(){
return this._displayDeleteConfirmation;
},set_DisplayDeleteConfirmation:function(_107){
this._displayDeleteConfirmation=_107;
},get_ShouldPostbackOnClick:function(){
return this._shouldPostbackOnClick;
},set_ShouldPostbackOnClick:function(_108){
this._shouldPostbackOnClick=_108;
},get_OverflowBehavior:function(){
return this._overflowBehavior;
},set_OverflowBehavior:function(_109){
this._overflowBehavior=_109;
},get_ReadOnly:function(){
return this._readOnly;
},set_ReadOnly:function(_10a){
this._readOnly=_10a;
},get_SelectedView:function(){
return this._selectedView;
},set_SelectedView:function(_10b){
this._selectedView=_10b;
},get_MinutesPerRow:function(){
return this._minutesPerRow;
},set_MinutesPerRow:function(_10c){
this._minutesPerRow=_10c;
},get_PostBackReference:function(){
return this._postBackReference;
},set_PostBackReference:function(_10d){
this._postBackReference=_10d;
},set_AllowEdit:function(_10e){
this._allowEdit=_10e;
},get_AllowEdit:function(){
return this._allowEdit;
},set_AllowDelete:function(_10f){
this._allowDelete=_10f;
},get_AllowDelete:function(){
return this._allowDelete;
},set_AllowInsert:function(_110){
this._allowInsert=_110;
},get_AllowInsert:function(){
return this._allowInsert;
},add_AppointmentClick:function(_111){
this.get_events().addHandler("AppointmentClick",_111);
},remove_AppointmentClick:function(_112){
this.get_events().removeHandler("AppointmentClick",_112);
},raise_AppointmentClick:function(args){
this.raiseEvent("AppointmentClick",args);
},add_AppointmentInserting:function(_114){
this.get_events().addHandler("AppointmentInserting",_114);
},remove_AppointmentInserting:function(_115){
this.get_events().removeHandler("AppointmentInserting",_115);
},raise_AppointmentInserting:function(_116){
this.raiseEvent("AppointmentInserting",_116);
},add_AppointmentDoubleClick:function(_117){
this.get_events().addHandler("AppointmentDoubleClick",_117);
},remove_AppointmentDoubleClick:function(_118){
this.get_events().removeHandler("AppointmentDoubleClick",_118);
},raise_AppointmentDoubleClick:function(_119){
this.raiseEvent("AppointmentDoubleClick",_119);
},add_AppointmentResizeStart:function(_11a){
this.get_events().addHandler("AppointmentResizeStart",_11a);
},remove_AppointmentResizeStart:function(_11b){
this.get_events().removeHandler("AppointmentResizeStart",_11b);
},raise_AppointmentResizeStart:function(args){
this.raiseEvent("AppointmentResizeStart",args);
},add_AppointmentResizeEnd:function(_11d){
this.get_events().addHandler("AppointmentResizeEnd",_11d);
},remove_AppointmentResizeEnd:function(_11e){
this.get_events().removeHandler("AppointmentResizeEnd",_11e);
},raise_AppointmentResizeEnd:function(args){
this.raiseEvent("AppointmentResizeEnd",args);
},add_AppointmentResizing:function(_120){
this.get_events().addHandler("AppointmentResizing",_120);
},remove_AppointmentResizing:function(_121){
this.get_events().removeHandler("AppointmentResizing",_121);
},raise_AppointmentResizing:function(args){
this.raiseEvent("AppointmentResizing",args);
},add_AppointmentDeleting:function(_123){
this.get_events().addHandler("AppointmentDeleting",_123);
},remove_AppointmentDeleting:function(_124){
this.get_events().removeHandler("AppointmentDeleting",_124);
},raise_AppointmentDeleting:function(args){
this.raiseEvent("AppointmentDeleting",args);
},add_TimeSlotClick:function(_126){
this.get_events().addHandler("TimeSlotClick",_126);
},remove_TimeSlotClick:function(_127){
this.get_events().removeHandler("TimeSlotClick",_127);
},raise_TimeSlotClick:function(args){
this.raiseEvent("TimeSlotClick",args);
},add_AppointmentEditing:function(_129){
this.get_events().addHandler("AppointmentEditing",_129);
},remove_AppointmentEditing:function(_12a){
this.get_events().removeHandler("AppointmentEditing",_12a);
},raise_AppointmentEditing:function(args){
this.raiseEvent("AppointmentEditing",args);
}};
Telerik.Web.UI.RadScheduler.FixHeight=function(_12c){
var _12d=$get(_12c);
var _12e=_12d.offsetHeight;
var _12f=_12e;
var _130=null;
var divs=_12d.childNodes;
var _132=divs.length;
for(var i=0;i<_132;i++){
var _134=divs[i];
if(_134.tagName&&_134.tagName.toLowerCase()=="div"){
if(Telerik.Web.DomElement.containsCssClass(_134,"rsContent")){
_130=_134;
}else{
_12f-=_134.offsetHeight;
}
}
}
if(_130!=null){
var _135=TelerikCommonScripts.getPaddingBox(_130).vertical;
var _136=TelerikCommonScripts.getBorderBox(_130).vertical;
_12f-=_135+_136;
_12f=Math.max(_12f,50);
if(_12f!=_130.offsetHeight){
_130.style.height=_12f+"px";
}
}
var _137=Telerik.Web.DomElement.getElementByClassName(_12d,"rsAllDayLastCell","td");
if(_137){
_137.firstChild.style.width=(Telerik.Web.UI.RadScheduler.GetScrollBarWidth()-1)+"px";
}
var _138=Telerik.Web.DomElement.getElementByClassName(_12d,"rsColumnHeaderLastCell","td");
if(_138){
_138.firstChild.style.width=(Telerik.Web.UI.RadScheduler.GetScrollBarWidth()-1)+"px";
}
};
Telerik.Web.UI.RadScheduler.FixAdvancedFormHeight=function(_139){
var _13a=$get(_139);
var _13b=null;
var _13c=null;
var divs=_13a.getElementsByTagName("div");
var _13e=divs.length;
for(var i=0;i<_13e;i++){
var _140=divs[i];
if(Telerik.Web.DomElement.containsCssClass(_140,"rsAdvancedSubmitArea")){
_13c=_140;
}else{
if(Telerik.Web.DomElement.containsCssClass(_140,"rsAdvOptions")){
_13b=_140;
}
}
}
if(_13b!=null&&_13c!=null){
var _141=_13a.offsetHeight;
var _142=(_141-_13c.offsetHeight);
_13b.style.height=_142+"px";
_142-=_13b.offsetHeight-_142;
_13b.style.height=_142+"px";
_13c.style.cssText=_13c.style.cssText;
}
};
Telerik.Web.UI.RadScheduler.IncrementTime=function(date,_144,_145){
if(isNaN(_145)){
_145=0;
}
date.setTime(date.getTime()+(_144*3600000)+(_145*60000));
};
Telerik.Web.UI.RadScheduler.IncrementMilliseconds=function(date,_147){
date.setTime(date.getTime()+_147);
};
Telerik.Web.UI.RadScheduler.GetScrollBarWidth=function(){
var _148,_149=0;
var _14a=document.createElement("div");
_14a.style.position="absolute";
_14a.style.top="-1000px";
_14a.style.left="-1000px";
_14a.style.width="100px";
_14a.style.height="50px";
_14a.style.overflow="hidden";
var _14b=document.createElement("div");
_14b.style.width="100%";
_14b.style.height="200px";
_14a.appendChild(_14b);
document.body.appendChild(_14a);
var _14c=_14b.offsetWidth;
_14a.style.overflow="auto";
var _14d=_14b.offsetWidth;
Telerik.Web.UI.RadScheduler._scrollbarWidth=_14c-_14d;
if(Telerik.Web.UI.RadScheduler._scrollbarWidth<=0){
_14b.style.width="300px";
_148=_14a.offsetWidth;
_149=_14a.clientWidth;
Telerik.Web.UI.RadScheduler._scrollbarWidth=_148-_149;
}
if(Telerik.Web.UI.RadScheduler._scrollbarWidth<=0){
Telerik.Web.UI.RadScheduler._scrollbarWidth=16;
}
document.body.removeChild(document.body.lastChild);
return Telerik.Web.UI.RadScheduler._scrollbarWidth;
};
Telerik.Web.UI.RadScheduler.registerClass("Telerik.Web.UI.RadScheduler",Telerik.Web.UI.RadWebControl);


if(typeof(Sys)!=='undefined')Sys.Application.notifyScriptLoaded();