mirror of https://github.com/layui/laydate
开启时间选择时,点击日期将不会主动关闭窗口。
parent
635c7e2522
commit
7e0006b9ac
|
@ -781,7 +781,11 @@ Dates.events = function(){
|
|||
Dates.on(elem, 'click', function(ev){
|
||||
if(!Dates.hasClass(this, as[1])){
|
||||
Dates.stopmp(ev);
|
||||
Dates.creation([this.getAttribute('y')|0, this.getAttribute('m')|0, this.getAttribute('d')|0]);
|
||||
if(Dates.options.istime){
|
||||
+ Dates.viewDate([this.getAttribute('y')|0, (this.getAttribute('m')|0)-1, this.getAttribute('d')|0]);
|
||||
+ }else{
|
||||
+ Dates.creation([this.getAttribute('y')|0, this.getAttribute('m')|0, this.getAttribute('d')|0]);
|
||||
+ }
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue