jeDate icon indicating copy to clipboard operation
jeDate copied to clipboard

如何改动以下代码,可以让日期选择完后面板不消失,确认之后才消失

Open ilalali opened this issue 8 years ago • 0 comments

//选择日 clickLiDays:function(that, opts, self) { jeDt.each(QD(Cell + " .jedaul li"), function(i, cls) { jeDt.on(cls, "click", function(ev) { if (jeDt.hasClass(cls, "disabled")) return; jeDt.stopmp(ev); var liTms = []; jeDt.each(QD(Cell + " .jedatehms em"), function(l, tval) { liTms.push(jeDt.text(tval)); }); var aty = parseInt(jeDt.attr(cls, "data-y")) | 0, atm = parseInt(jeDt.attr(cls, "data-m")) | 0, atd = parseInt(jeDt.attr(cls, "data-d")) | 0; var getParDate = jeDt.parse([ aty, atm, atd ], [ liTms[0], liTms[1], liTms[2] ], opts.format); that.getDateStr(aty, atm, atd); jeDt.isValHtml(self) ? jeDt.val(self, getParDate) :jeDt.text(self, getParDate); jeDt.html(QD(Cell)[0], ""); jeDt.shdeCell(true); if (opts.choosefun === "function" || opts.choosefun != null) { opts.choosefun(getParDate); } }); }); }

ilalali avatar Apr 11 '18 08:04 ilalali