Skip to content

Commit

Permalink
Merge pull request #90 from regon-cao/gh-pages
Browse files Browse the repository at this point in the history
Update jedate.js
  • Loading branch information
singod authored Mar 13, 2019
2 parents fcb422d + 86b8c94 commit af070f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jedate.js
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@
var getCurrValue = function () {
var mats = jet.reMatch(that.format), isEmpty = that.getValue() != "",curVal = [],
parmat = that.dlen == 7 ? "hh:mm:ss" : "YYYY-MM"+ (that.dlen <= 2 ? "":"-DD");
that.selectValue = [jet.parse(jet.getDateTime({}), parmat)];
that.selectValue = that.selectValue && that.selectValue.length > 0 ? that.selectValue : [jet.parse(jet.getDateTime({}), parmat)];
if(isEmpty && isShow){
var getVal = that.getValue().split(range);
jet.each(new Array(range ? 2 : 1),function (a) {
Expand Down

0 comments on commit af070f0

Please sign in to comment.