mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-28 23:59:57 +09:00
달력에서 마지막 날짜가 잘못 표기되던 버그 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6815 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
02a0cf8948
commit
e2db4bbdcf
1 changed files with 1 additions and 1 deletions
|
|
@ -139,7 +139,7 @@ $.extend(Calendar.prototype, {
|
||||||
v['weeks'] = [];
|
v['weeks'] = [];
|
||||||
|
|
||||||
var d = new Date(cal.date.getTime()), w = [];
|
var d = new Date(cal.date.getTime()), w = [];
|
||||||
var last = (v.m!=2)? (v.m%2?31:30) : ((new Date(v.yyyy,v.m-1,29)).getMonth()==v.m?29:28); // 마지막 날
|
var last = (v.m!=2)? ((v.m+(v.m>7?1:0))%2?31:30) : ((new Date(v.yyyy,v.m-1,29)).getMonth()==v.m?29:28); // 마지막 날
|
||||||
|
|
||||||
d.setDate(1); // 1일로 설정 후 1일의 요일을 가져온다.
|
d.setDate(1); // 1일로 설정 후 1일의 요일을 가져온다.
|
||||||
var start = d.getDay(), end = last+start;
|
var start = d.getDay(), end = last+start;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue