diff --git a/src/widget/dynamicdate/dynamicdate.card.js b/src/widget/dynamicdate/dynamicdate.card.js index acc9b6afe6..00d3c12b86 100644 --- a/src/widget/dynamicdate/dynamicdate.card.js +++ b/src/widget/dynamicdate/dynamicdate.card.js @@ -173,7 +173,8 @@ BI.DynamicDateCard = BI.inherit(BI.Widget, { listeners: [{ eventName: "EVENT_CHANGE", action: function () { - this.setValue(self._checkPositionValue(this.getValue()[0])); + self.position = this.getValue()[0]; + this.setValue(self.position); self.fireEvent("EVENT_CHANGE"); } }] @@ -189,7 +190,8 @@ BI.DynamicDateCard = BI.inherit(BI.Widget, { listeners: [{ eventName: "EVENT_CHANGE", action: function () { - this.setValue(self._checkPositionValue(this.getValue()[0])); + self.position = this.getValue()[0]; + this.setValue(self.position); self.fireEvent("EVENT_CHANGE"); } }] @@ -201,15 +203,6 @@ BI.DynamicDateCard = BI.inherit(BI.Widget, { return items; }, - _checkPositionValue: function (v) { - var lastPosition = this.position; - this.position = v; - if (!this._checkDate({})) { - this.position = lastPosition; - } - return this.position; - }, - _checkDate: function (obj) { var o = this.options; var date = BI.DynamicDateHelper.getCalculation(BI.extend(this._getValue(), this._digestDateTypeValue(obj))); diff --git a/src/widget/dynamicdate/dynamicdate.param.item.js b/src/widget/dynamicdate/dynamicdate.param.item.js index 9cb96a26d4..1db32d44c9 100644 --- a/src/widget/dynamicdate/dynamicdate.param.item.js +++ b/src/widget/dynamicdate/dynamicdate.param.item.js @@ -69,9 +69,6 @@ BI.DynamicDateParamItem = BI.inherit(BI.Widget, { listeners: [{ eventName: BI.TextValueCombo.EVENT_CHANGE, action: function () { - if (!o.validationChecker(self.getValue())) { - self.editor.setValue(0); - } self.fireEvent(BI.DynamicDateParamItem.EVENT_CHANGE); } }]