dist/b-datepicker.js
function(force)
        {
            if (!this._v && !force) {
                return;
            }
            var opts = this._o,
                minYear = opts.minYear,
                maxYear = opts.maxYear,
                minMonth = opts.minMonth,
                maxMonth = opts.maxMonth;

            if (this._y <= minYear) {
                this._y = minYear;
                if (!isNaN(minMonth) && this._m < minMonth) {
                    this._m = minMonth;
                }
            }
            if (this._y >= maxYear) {
                this._y = maxYear;
                if (!isNaN(maxMonth) && this._m > maxMonth) {
                    this._m = maxMonth;
                }
            }

            this.el.innerHTML = renderTitle(this) + this.render(this._y, this._m);

            if (opts.bound) {
                this.adjustPosition();
                if(opts.field.type !== 'hidden') {
                    sto(function() {
                        opts.trigger.focus();
                    }, 1);
                }
            }

            if (typeof this._o.onDraw === 'function') {
                var self = this;
                sto(function() {
                    self._o.onDraw.call(self);
                }, 0);
            }
        }
function(force)
        {
            if (!this._v && !force) {
                return;
            }
            var opts = this._o,
                minYear = opts.minYear,
                maxYear = opts.maxYear,
                minMonth = opts.minMonth,
                maxMonth = opts.maxMonth;

            if (this._y <= minYear) {
                this._y = minYear;
                if (!isNaN(minMonth) && this._m < minMonth) {
                    this._m = minMonth;
                }
            }
            if (this._y >= maxYear) {
                this._y = maxYear;
                if (!isNaN(maxMonth) && this._m > maxMonth) {
                    this._m = maxMonth;
                }
            }

            this.el.innerHTML = renderTitle(this) + this.render(this._y, this._m);

            if (opts.bound) {
                this.adjustPosition();
                if(opts.field.type !== 'hidden') {
                    sto(function() {
                        opts.trigger.focus();
                    }, 1);
                }
            }

            if (typeof this._o.onDraw === 'function') {
                var self = this;
                sto(function() {
                    self._o.onDraw.call(self);
                }, 0);
            }
        }
function ( force ) { if ( ! this . _v && ! force ) { return ; } var opts = this . _o , minYear = opts . minYear , maxYear = opts . maxYear , minMonth = opts . minMonth , maxMonth = opts . maxMonth ; if ( this . _y <= minYear ) { this . _y = minYear ; if ( ! isNaN ( minMonth ) && this . _m < minMonth ) { this . _m = minMonth ; } } if ( this . _y >= maxYear ) { this . _y = maxYear ; if ( ! isNaN ( maxMonth ) && this . _m > maxMonth ) { this . _m = maxMonth ; } } this . el . innerHTML = renderTitle ( this ) + this . render ( this . _y , this . _m ) ; if ( opts . bound ) { this . adjustPosition ( ) ; if ( opts . field . type !== 'hidden' ) { sto ( function ( ) { opts . trigger . focus ( ) ; } , 1 ) ; } } if ( typeof this . _o . onDraw === 'function' ) { var self = this ; sto ( function ( ) { self . _o . onDraw . call ( self ) ; } , 0 ) ; } }
refresh the HTML
refresh the HTML