Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onClose 无效 #77

Open
senvys opened this issue Jun 5, 2018 · 2 comments
Open

onClose 无效 #77

senvys opened this issue Jun 5, 2018 · 2 comments

Comments

@senvys
Copy link

senvys commented Jun 5, 2018

jeDate:6.0.2
当format设置成 "YYYY-MM",onClose设置成false,不会自动关闭弹层

@keepingcoding
Copy link

同求

@dutianyu
Copy link

                    if (!jet.isBool(opts.onClose)) {
                        var ymdObj = {}, spval = jet.reMatch(thisdate);
                        //获取时分秒的集合
                        $.each(spval, function (i, val) {
                            ymdObj[matArr[i]] = val;
                        });
                        var objs = /\hh/.test(that.format) ? $.extend(ymdObj, that.gethmsVal(boxCell)) : ymdObj;
                        var vals = that.setValue(objs);
                        that.dateClose();
                        if ($.isFunction(opts.okfun) || opts.okfun != null) {
                            opts.okfun && opts.okfun({ elem: elemCell, val: vals, date: objs });
                        }
                    }

在源码(jedate-6.0.2/jquery.jedate.js)881行后面,追加上述代码,即可解决

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants