开启时间选择时,点击日期将不会主动关闭窗口。

pull/61/head
wangsuiche 2017-06-21 17:47:33 +08:00 committed by GitHub
parent 635c7e2522
commit 7e0006b9ac
1 changed files with 5 additions and 1 deletions

View File

@ -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]);
+ }
}
});
});