From 5b7ec8c4242ecffe1834debfc41924de60e70f89 Mon Sep 17 00:00:00 2001 From: "Zhenfei.Li" Date: Tue, 22 Dec 2020 09:57:49 +0800 Subject: [PATCH] =?UTF-8?q?BI-78670=20refactor:=20=E6=A0=B9=E6=8D=AEcommen?= =?UTF-8?q?t=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/widget/timeinterval/dateinterval.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/widget/timeinterval/dateinterval.js b/src/widget/timeinterval/dateinterval.js index 09fdd95f81..38f080d7ea 100644 --- a/src/widget/timeinterval/dateinterval.js +++ b/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); \ No newline at end of file +BI.DateInterval.EVENT_BEFORE_YEAR_MONTH_POPUPVIEW = "EVENT_BEFORE_YEAR_MONTH_POPUPVIEW"; +BI.shortcut("bi.date_interval", BI.DateInterval);