You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
28 KiB

1 year ago
Type.registerNamespace("AjaxControlToolkit");AjaxControlToolkit.CalendarBehavior=function(d){var c=false,b=null,a=this;AjaxControlToolkit.CalendarBehavior.initializeBase(a,[d]);a._textbox=AjaxControlToolkit.TextBoxWrapper.get_Wrapper(d);a._format="d";a._todaysDateFormat="MMMM d, yyyy";a._daysModeTitleFormat="MMMM, yyyy";a._cssClass="ajax__calendar";a._enabled=true;a._animated=true;a._buttonID=b;a._layoutRequested=0;a._layoutSuspended=c;a._button=b;a._popupMouseDown=c;a._selectedDate=b;a._visibleDate=b;a._todaysDate=b;a._firstDayOfWeek=AjaxControlToolkit.FirstDayOfWeek.Default;a._firstPopUp=true;a._container=b;a._popupDiv=b;a._header=b;a._prevArrow=b;a._nextArrow=b;a._title=b;a._body=b;a._today=b;a._days=b;a._daysTable=b;a._daysTableHeader=b;a._daysTableHeaderRow=b;a._daysBody=b;a._months=b;a._monthsTable=b;a._monthsBody=b;a._years=b;a._yearsTable=b;a._yearsBody=b;a._popupPosition=AjaxControlToolkit.CalendarPosition.BottomLeft;a._defaultView=AjaxControlToolkit.CalendarDefaultView.Days;a._popupBehavior=b;a._modeChangeAnimation=b;a._modeChangeMoveTopOrLeftAnimation=b;a._modeChangeMoveBottomOrRightAnimation=b;a._mode="days";a._selectedDateChanging=c;a._isOpen=c;a._isAnimating=c;a._clearTime=c;a._width=170;a._height=139;a._modes={days:b,months:b,years:b};a._modeOrder={days:0,months:1,years:2};a._hourOffsetForDst=12;a._blur=new AjaxControlToolkit.DeferredOperation(1,a,a.blur);a._button$delegates={click:Function.createDelegate(a,a._button_onclick),keypress:Function.createDelegate(a,a._button_onkeypress),blur:Function.createDelegate(a,a._button_onblur)};a._element$delegates={change:Function.createDelegate(a,a._element_onchange),keypress:Function.createDelegate(a,a._element_onkeypress),click:Function.createDelegate(a,a._element_onclick),focus:Function.createDelegate(a,a._element_onfocus),blur:Function.createDelegate(a,a._element_onblur)};a._popup$delegates={mousedown:Function.createDelegate(a,a._popup_onmousedown),mouseup:Function.createDelegate(a,a._popup_onmouseup),drag:Function.createDelegate(a,a._popup_onevent),dragstart:Function.createDelegate(a,a._popup_onevent),select:Function.createDelegate(a,a._popup_onevent)};a._cell$delegates={mouseover:Function.createDelegate(a,a._cell_onmouseover),mouseout:Function.createDelegate(a,a._cell_onmouseout),click:Function.createDelegate(a,a._cell_onclick)}};AjaxControlToolkit.CalendarBehavior.prototype={get_clearTime:function(){return this._clearTime},set_clearTime:function(a){if(this._clearTime!=a){this._clearTime=a;this.raisePropertyChanged("_clearTime")}},get_animated:function(){return this._animated},set_animated:function(a){if(this._animated!=a){this._animated=a;this.raisePropertyChanged("animated")}},get_enabled:function(){return this._enabled},set_enabled:function(a){if(this._enabled!=a){this._enabled=a;this.raisePropertyChanged("enabled")}},get_button:function(){return this._button},set_button:function(b){var a=this;if(a._button!=b){a._button&&a.get_isInitialized()&&$common.removeHandlers(a._button,a._button$delegates);a._button=b;a._button&&a.get_isInitialized()&&$addHandlers(a._button,a._button$delegates);a.raisePropertyChanged("button")}},get_popupPosition:function(){return this._popupPosition},set_popupPosition:function(a){if(this._popupPosition!=a){this._popupPosition=a;this.raisePropertyChanged("popupPosition")}},get_format:function(){return this._format},set_format:function(a){if(this._format!=a){this._format=a;this.raisePropertyChanged("format")}},get_todaysDateFormat:function(){return this._todaysDateFormat},set_todaysDateFormat:function(a){if(this._todaysDateFormat!=a){this._todaysDateFormat=a;this.raisePropertyChanged("todaysDateFormat")}},get_daysModeTitleFormat:function(){return this._daysModeTitleFormat},set_daysModeTitleFormat:function(a){if(this._daysModeTitleFormat!=a){this._daysModeTitleFormat=a;this.raisePropertyChanged("daysModeTitleFormat")}},get_selectedDate:function(){var a=this;if(a._selectedDate==null){var b=a._textbox.get_Value();if(b){b=a._parseTextValue(b);if(b)a._selectedDate=b.getDateOnly()}}return a._selectedDate},set_selectedDate:function(b){var
if(typeof(Sys)!=='undefined')Sys.Application.notifyScriptLoaded();