|
|
@ -100,7 +100,7 @@ BI.YearMonthInterval = BI.inherit(BI.Single, { |
|
|
|
combo.on(BI.DynamicYearMonthCombo.EVENT_CONFIRM, function () { |
|
|
|
combo.on(BI.DynamicYearMonthCombo.EVENT_CONFIRM, function () { |
|
|
|
BI.Bubbles.hide("error"); |
|
|
|
BI.Bubbles.hide("error"); |
|
|
|
var smallDate = self.left.getKey(), bigDate = self.right.getKey(); |
|
|
|
var smallDate = self.left.getKey(), bigDate = self.right.getKey(); |
|
|
|
if (self.left.isValid() && self.right.isValid() && self._check(smallDate, bigDate) && self._compare(smallDate, bigDate)) { |
|
|
|
if (self.left.isStateValid() && self.right.isStateValid() && self._check(smallDate, bigDate) && self._compare(smallDate, bigDate)) { |
|
|
|
self._setTitle(BI.i18nText("BI-Time_Interval_Error_Text")); |
|
|
|
self._setTitle(BI.i18nText("BI-Time_Interval_Error_Text")); |
|
|
|
self.element.addClass(self.constants.timeErrorCls); |
|
|
|
self.element.addClass(self.constants.timeErrorCls); |
|
|
|
self.fireEvent(BI.YearMonthInterval.EVENT_ERROR); |
|
|
|
self.fireEvent(BI.YearMonthInterval.EVENT_ERROR); |
|
|
|