diff --git a/src/widget/date/calendar/picker.year.js b/src/widget/date/calendar/picker.year.js index fef2ba0695..389ee51cb5 100644 --- a/src/widget/date/calendar/picker.year.js +++ b/src/widget/date/calendar/picker.year.js @@ -87,14 +87,14 @@ BI.YearPicker = BI.inherit(BI.Widget, { _checkLeftValid: function () { var o = this.options; - var valid = !(this._year === BI.parseDateTime(o.min, "%Y-%X-%d").getFullYear()); + var valid = this._year > BI.parseDateTime(o.min, "%Y-%X-%d").getFullYear(); this.left.setEnable(valid); return valid; }, _checkRightValid: function () { var o = this.options; - var valid = !(this._year === BI.parseDateTime(o.max, "%Y-%X-%d").getFullYear()); + var valid = this._year < BI.parseDateTime(o.max, "%Y-%X-%d").getFullYear(); this.right.setEnable(valid); return valid; },