public/javascripts/yui/calendar/calendar.js
function(year) {
    
        var cfgPageDate = DEF_CFG.PAGEDATE.key;
    
        year = parseInt(year, 10);
        for (var p=0;p<this.pages.length;++p) {
            var cal = this.pages[p];
            var pageDate = cal.cfg.getProperty(cfgPageDate);
    
            if ((pageDate.getMonth()+1) == 1 && p>0) {
                year+=1;
            }
            cal.setYear(year);
        }
    }
function(year) {
    
        var cfgPageDate = DEF_CFG.PAGEDATE.key;
    
        year = parseInt(year, 10);
        for (var p=0;p<this.pages.length;++p) {
            var cal = this.pages[p];
            var pageDate = cal.cfg.getProperty(cfgPageDate);
    
            if ((pageDate.getMonth()+1) == 1 && p>0) {
                year+=1;
            }
            cal.setYear(year);
        }
    }
function ( year ) { var cfgPageDate = DEF_CFG . PAGEDATE . key ; year = parseInt ( year , 10 ) ; for ( var p = 0 ; p < this . pages . length ; ++ p ) { var cal = this . pages [ p ] ; var pageDate = cal . cfg . getProperty ( cfgPageDate ) ; if ( ( pageDate . getMonth ( ) + 1 ) == 1 && p > 0 ) { year += 1 ; } cal . setYear ( year ) ; } }
Sets the calendar group's year explicitly. This year will be set into the first
page of the multi-page calendar, and all other months will be iterated appropriately.
@method setYear
@param {Number} year  The numeric 4-digit year
Sets the calendar group s year explicitly . This year will be set into the first page of the multi - page calendar and all other months will be iterated appropriately .