|
|
|
@ -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; |
|
|
|
|
}, |
|
|
|
|