define("dojo/_base/declare ./_CalendarView dijit/_TemplatedMixin ./_CalendarMonthYearView dojo/dom-class dojo/_base/event dojo/text!./Calendar/CalendarMonth.html".split(" "),function(d,e,f,c,g,h,k){return d("dojox.widget._CalendarMonthView",[e,f],{templateString:k,datePart:"year",headerClass:"dojoxCalendarMonthHeader",displayedYear:"",postCreate:function(){this.cloneClass(".dojoxCalendarMonthTemplate",3);this.cloneClass(".dojoxCalendarMonthGroupTemplate",2);this._populateMonths();this.addFx(".dojoxCalendarMonthLabel",
|
this.domNode)},_setValueAttr:function(a){a=this.header.innerHTML=a.getFullYear();this.set("displayedYear",a);this._populateMonths()},_getMonthNames:c.prototype._getMonthNames,_populateMonths:c.prototype._populateMonths,onClick:function(a){if(g.contains(a.target,"dojoxCalendarMonthLabel")){a=a.target.parentNode;a=a.cellIndex+4*a.parentNode.rowIndex;var b=this.get("value");b.setMonth(a);b.setMonth(a);b.setYear(this.displayedYear);this.onValueSelected(b,a)}else h.stop(a)}})});
|