From 73723ff68efed35a6dd8fad1651ebb424dcd44c4 Mon Sep 17 00:00:00 2001 From: fay Date: Fri, 14 Aug 2020 11:36:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0JIRA=E4=BB=BB=E5=8A=A1=20event?= =?UTF-8?q?=E5=90=8D=E7=A7=B0=E6=B2=A1=E7=BB=91=E5=AE=9A=E5=88=B0=E5=AF=B9?= =?UTF-8?q?=E8=B1=A1=E4=B8=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/widget/datepane/datepane.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/widget/datepane/datepane.js b/src/widget/datepane/datepane.js index 8c60da784..be70600cf 100644 --- a/src/widget/datepane/datepane.js +++ b/src/widget/datepane/datepane.js @@ -44,7 +44,7 @@ BI.DynamicDatePane = BI.inherit(BI.Widget, { default: break; } - self.fireEvent("EVENT_CHANGE"); + self.fireEvent(BI.DynamicDatePane.EVENT_CHANGE); } }], ref: function () { @@ -67,7 +67,7 @@ BI.DynamicDatePane = BI.inherit(BI.Widget, { listeners: [{ eventName: "EVENT_CHANGE", action: function () { - self.fireEvent("EVENT_CHANGE"); + self.fireEvent(BI.DynamicDatePane.EVENT_CHANGE); } }], ref: function () { @@ -82,7 +82,7 @@ BI.DynamicDatePane = BI.inherit(BI.Widget, { eventName: "EVENT_CHANGE", action: function () { if(self._checkValue(self.getValue())) { - self.fireEvent("EVENT_CHANGE"); + self.fireEvent(BI.DynamicDatePane.EVENT_CHANGE); } } }], @@ -146,6 +146,9 @@ BI.DynamicDatePane = BI.inherit(BI.Widget, { }; } }); + +BI.DynamicDatePane.EVENT_CHANGE = "EVENT_CHANGE"; + BI.shortcut("bi.dynamic_date_pane", BI.DynamicDatePane); BI.extend(BI.DynamicDatePane, {