{"size": 2081, "ext": "js", "max_stars_repo_path": "surveylance-web/src/main/webapp/js/dojox/form/DateTextBox.js", "max_stars_repo_name": "jjsendor/surveylance", "max_stars_repo_stars_event_min_datetime": "2015-02-20T20:44:10.000Z", "max_stars_repo_stars_event_max_datetime": "2021-08-04T00:41:54.000Z", "max_issues_repo_path": "surveylance-web/src/main/webapp/js/dojox/form/DateTextBox.js", "max_issues_repo_name": "jjsendor/surveylance", "max_issues_repo_issues_event_min_datetime": "2021-03-13T06:58:13.000Z", "max_issues_repo_issues_event_max_datetime": "2021-03-13T06:58:29.000Z", "max_forks_repo_path": "surveylance-web/src/main/webapp/js/dojox/form/DateTextBox.js", "max_forks_repo_name": "jjsendor/surveylance", "max_forks_repo_forks_event_min_datetime": "2016-09-16T09:22:17.000Z", "max_forks_repo_forks_event_max_datetime": "2017-06-19T02:42:52.000Z"}
{"max_stars_count": 11, "max_issues_count": 29, "max_forks_count": 3, "avg_line_length": 38.537037037, "max_line_length": 136, "alphanum_fraction": 0.7390677559}
/*
	Copyright (c) 2004-2008, The Dojo Foundation All Rights Reserved.
	Available via Academic Free License >= 2.1 OR the modified BSD license.
	see: http://dojotoolkit.org/license for details
*/


if(!dojo._hasResource["dojox.form.DateTextBox"]){
dojo._hasResource["dojox.form.DateTextBox"]=true;
dojo.provide("dojox.form.DateTextBox");
dojo.require("dojox.widget.Calendar");
dojo.require("dijit.form._DateTimeTextBox");
dojo.declare("dojox.form.DateTextBox",dijit.form._DateTimeTextBox,{popupClass:"dojox.widget.Calendar",_selector:"date",_open:function(){
this.inherited(arguments);
dojo.style(this._picker.domNode.parentNode,"position","absolute");
}});
dojo.declare("dojox.form.DayTextBox",dojox.form.DateTextBox,{popupClass:"dojox.widget.DailyCalendar",format:function(_1){
return _1.getDate();
},validator:function(_2){
var _3=Number(_2);
var _4=/(^-?\d\d*$)/.test(String(_2));
return _2==""||_2==null||(_4&&_3>=1&&_3<=31);
},_open:function(){
this.inherited(arguments);
this._picker.onValueSelected=dojo.hitch(this,function(_5){
this.focus();
setTimeout(dojo.hitch(this,"_close"),1);
dijit.form.TextBox.prototype._setValueAttr.call(this,_5.getDate(),true,_5.getDate());
});
}});
dojo.declare("dojox.form.MonthTextBox",dojox.form.DateTextBox,{popupClass:"dojox.widget.MonthlyCalendar",validator:function(_6){
var _7=Number(_6);
var _8=/(^-?\d\d*$)/.test(String(_6));
return _6==""||_6==null||(_8&&_7>=1&&_7<=12);
},_open:function(){
this.inherited(arguments);
this._picker.onValueSelected=dojo.hitch(this,function(_9){
this.focus();
setTimeout(dojo.hitch(this,"_close"),1);
dijit.form.TextBox.prototype._setValueAttr.call(this,_9+1,true,_9+1);
});
}});
dojo.declare("dojox.form.YearTextBox",dojox.form.DateTextBox,{popupClass:"dojox.widget.YearlyCalendar",validator:function(_a){
return _a==""||_a==null||/(^-?\d\d*$)/.test(String(_a));
},_open:function(){
this.inherited(arguments);
this._picker.onValueSelected=dojo.hitch(this,function(_b){
this.focus();
setTimeout(dojo.hitch(this,"_close"),1);
dijit.form.TextBox.prototype._setValueAttr.call(this,_b,true,_b);
});
}});
}
