Browse Source

BI-78670 refactor: 根据comment优化代码

es6
Zhenfei.Li 4 years ago
parent
commit
5b7ec8c424
  1. 8
      src/widget/timeinterval/dateinterval.js

8
src/widget/timeinterval/dateinterval.js

@ -72,9 +72,9 @@ BI.DateInterval = BI.inherit(BI.Single, {
value: v,
height: o.height,
listeners: [{
eventName: BI.DynamicDateCombo.EVENT_BEFORE_POPUPVIEW,
eventName: BI.DynamicDateCombo.EVENT_BEFORE_YEAR_MONTH_POPUPVIEW,
action: function () {
self.fireEvent(BI.DateInterval.EVENT_BEFORE_POPUPVIEW);
self.fireEvent(BI.DateInterval.EVENT_BEFORE_YEAR_MONTH_POPUPVIEW);
}
}]
});
@ -186,5 +186,5 @@ BI.DateInterval = BI.inherit(BI.Single, {
BI.DateInterval.EVENT_VALID = "EVENT_VALID";
BI.DateInterval.EVENT_ERROR = "EVENT_ERROR";
BI.DateInterval.EVENT_CHANGE = "EVENT_CHANGE";
BI.DateInterval.EVENT_BEFORE_POPUPVIEW = "EVENT_BEFORE_POPUPVIEW";
BI.shortcut("bi.date_interval", BI.DateInterval);
BI.DateInterval.EVENT_BEFORE_YEAR_MONTH_POPUPVIEW = "EVENT_BEFORE_YEAR_MONTH_POPUPVIEW";
BI.shortcut("bi.date_interval", BI.DateInterval);

Loading…
Cancel
Save