|
|
@ -35,7 +35,7 @@ BI.DatePicker = BI.inherit(BI.Widget, { |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
self.setValue({ |
|
|
|
self.setValue({ |
|
|
|
year: self.year.getValue(), |
|
|
|
year: self.year.getValue(), |
|
|
|
month: self.month.getValue() - 1, |
|
|
|
month: (self.month.getValue() - 1) || BI.getDate().getMonth(), |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
self.fireEvent(BI.DatePicker.EVENT_CHANGE); |
|
|
|
self.fireEvent(BI.DatePicker.EVENT_CHANGE); |
|
|
@ -59,7 +59,7 @@ BI.DatePicker = BI.inherit(BI.Widget, { |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
self.setValue({ |
|
|
|
self.setValue({ |
|
|
|
year: self.year.getValue(), |
|
|
|
year: self.year.getValue(), |
|
|
|
month: self.month.getValue() + 1, |
|
|
|
month: (self.month.getValue() + 1) || (BI.getDate().getMonth() + 2), |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
self.fireEvent(BI.DatePicker.EVENT_CHANGE); |
|
|
|
self.fireEvent(BI.DatePicker.EVENT_CHANGE); |
|
|
|