Merge pull request #61 from wangsuiche/master

开启时间选择时,点击日期将不会主动关闭窗口。
v1
贤心 2017-07-21 21:39:10 +08:00 committed by GitHub
commit 80c23361e6
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]);
+ }
}
});
});