|
|
|
@ -65,7 +65,13 @@ BI.DynamicYearQuarterTrigger = BI.inherit(BI.Trigger, {
|
|
|
|
|
height: o.height, |
|
|
|
|
validationChecker: function (v) { |
|
|
|
|
if(isYear) { |
|
|
|
|
return v === "" || (BI.isPositiveInteger(v) && !BI.checkDateVoid(v, parseInt(v, 10) === BI.parseDateTime(o.min, "%Y-%X-%d").getFullYear() ? BI.parseDateTime(o.min, "%Y-%X-%d").getMonth() + 1 : 1, 1, o.min, o.max)[0]); |
|
|
|
|
var month = self.quarterEditor.getValue(); |
|
|
|
|
if(BI.isEmptyString(month)) { |
|
|
|
|
month = parseInt(v, 10) === BI.parseDateTime(o.min, "%Y-%X-%d").getFullYear() ? BI.parseDateTime(o.min, "%Y-%X-%d").getMonth() + 1 : 1; |
|
|
|
|
} else { |
|
|
|
|
month = (v - 1) * 3 + 1; |
|
|
|
|
} |
|
|
|
|
return v === "" || (BI.isPositiveInteger(v) && !BI.checkDateVoid(v, month, 1, o.min, o.max)[0]); |
|
|
|
|
} |
|
|
|
|
var year = self.yearEditor.getValue(); |
|
|
|
|
|
|
|
|
|