|
|
|
@ -88994,8 +88994,20 @@ BI.shortcut("bi.date_time_trigger", BI.DateTimeTrigger);BI.StaticDateTimePaneCar
|
|
|
|
|
max: o.max |
|
|
|
|
}); |
|
|
|
|
this.datePicker.on(BI.DatePicker.EVENT_CHANGE, function () { |
|
|
|
|
self.selectedTime = BI.extend(self.datePicker.getValue(), self.timeSelect.getValue()); |
|
|
|
|
var value = self.datePicker.getValue(); |
|
|
|
|
var monthDay = BI.getDate(value.year, value.month - 1, 1).getMonthDays(); |
|
|
|
|
var day = self.selectedTime.day || 0; |
|
|
|
|
if (day > monthDay) { |
|
|
|
|
day = monthDay; |
|
|
|
|
} |
|
|
|
|
self.selectedTime = BI.extend(self.selectedTime, { |
|
|
|
|
year: value.year, |
|
|
|
|
month: value.month, |
|
|
|
|
day: day |
|
|
|
|
}); |
|
|
|
|
self.calendar.setSelect(BI.Calendar.getPageByDateJSON(self.selectedTime)); |
|
|
|
|
self.calendar.setValue(self.selectedTime); |
|
|
|
|
self.fireEvent("EVENT_CHANGE"); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
this.calendar = BI.createWidget({ |
|
|
|
@ -89022,7 +89034,13 @@ BI.shortcut("bi.date_time_trigger", BI.DateTimeTrigger);BI.StaticDateTimePaneCar
|
|
|
|
|
type: "bi.dynamic_date_time_select", |
|
|
|
|
ref: function () { |
|
|
|
|
self.timeSelect = this; |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
listeners: [{ |
|
|
|
|
eventName: BI.DynamicDateTimeSelect.EVENT_CONFIRM, |
|
|
|
|
action: function () { |
|
|
|
|
self.fireEvent("EVENT_CHANGE"); |
|
|
|
|
} |
|
|
|
|
}] |
|
|
|
|
}, |
|
|
|
|
height: 40 |
|
|
|
|
}] |
|
|
|
@ -89058,7 +89076,7 @@ BI.shortcut("bi.date_time_trigger", BI.DateTimeTrigger);BI.StaticDateTimePaneCar
|
|
|
|
|
_setCalenderValue: function (date) { |
|
|
|
|
this.calendar.setSelect(BI.Calendar.getPageByDateJSON(date)); |
|
|
|
|
this.calendar.setValue(date); |
|
|
|
|
this.selectedTime = BI.extend(date, this.timeSelect.getValue()); |
|
|
|
|
this.selectedTime = BI.extend({}, this.timeSelect.getValue(), date); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_setDatePicker: function (timeOb) { |
|
|
|
@ -107342,6 +107360,7 @@ BI.DateInterval = BI.inherit(BI.Single, {
|
|
|
|
|
}); |
|
|
|
|
combo.on(BI.DynamicDateCombo.EVENT_ERROR, function () { |
|
|
|
|
self._clearTitle(); |
|
|
|
|
BI.Bubbles.hide("error"); |
|
|
|
|
self.element.removeClass(self.constants.timeErrorCls); |
|
|
|
|
self.fireEvent(BI.DateInterval.EVENT_ERROR); |
|
|
|
|
}); |
|
|
|
@ -107520,6 +107539,7 @@ BI.TimeInterval = BI.inherit(BI.Single, {
|
|
|
|
|
}); |
|
|
|
|
combo.on(BI.DynamicDateTimeCombo.EVENT_ERROR, function () { |
|
|
|
|
self._clearTitle(); |
|
|
|
|
BI.Bubbles.hide("error"); |
|
|
|
|
self.element.removeClass(self.constants.timeErrorCls); |
|
|
|
|
self.fireEvent(BI.TimeInterval.EVENT_ERROR); |
|
|
|
|
}); |
|
|
|
|