mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
월별 달력에 년 이동 기능 추가
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6802 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
049beb8d8a
commit
d0ed494905
2 changed files with 15 additions and 3 deletions
|
|
@ -10,8 +10,10 @@
|
|||
.ui-calendar caption .today span{text-decoration:underline;}
|
||||
.ui-calendar caption .navi{ position:absolute; top:10px; border:0; padding:0; width:17px; height:18px; background-color:transparent; background-image:url(./img/buttonPaginate.gif); background-repeat:no-repeat; cursor:pointer;}
|
||||
.ui-calendar caption .navi span{ position:absolute; width:0; height:0; overflow:hidden; font-size:0; line-height:0; z-index:-1; visibility:hidden;}
|
||||
.ui-calendar caption .navi.prev{ left:0; background-position:left top;}
|
||||
.ui-calendar caption .navi.next{ right:0; background-position:right top;}
|
||||
.ui-calendar caption .navi.prev{ left:20px; background-position:left top;}
|
||||
.ui-calendar caption .navi.next{ right:20px; background-position:right top;}
|
||||
.ui-calendar caption .navi.prev_year{ left:0; background-position:left top;}
|
||||
.ui-calendar caption .navi.next_year{ right:0; background-position:right top;}
|
||||
.ui-calendar th,
|
||||
.ui-calendar td{ border:0; text-align:center;}
|
||||
.ui-calendar th{ color:#666; background:#f2f2f2; padding:3px 8px;}
|
||||
|
|
|
|||
|
|
@ -61,6 +61,8 @@ $.extend(Calendar.prototype, {
|
|||
today : 'Today',
|
||||
prevmonth : 'Prev Month',
|
||||
nextmonth : 'Next Month',
|
||||
prevyear : 'Prev Year',
|
||||
nextyear : 'Next Year',
|
||||
close : 'Close'
|
||||
}, options.lang||{});
|
||||
|
||||
|
|
@ -173,6 +175,8 @@ $.extend(Calendar.prototype, {
|
|||
} else {
|
||||
obj.find('button.prev').click(function(){ $.calendar._prevMonth(obj) });
|
||||
obj.find('button.next').click(function(){ $.calendar._nextMonth(obj) });
|
||||
obj.find('button.prev_year').click(function(){ $.calendar._prevYear(obj) });
|
||||
obj.find('button.next_year').click(function(){ $.calendar._nextYear(obj) });
|
||||
}
|
||||
obj.find('td>button').click(function(){ $.calendar._selectDate(obj, $(this)) });
|
||||
},
|
||||
|
|
@ -244,10 +248,14 @@ $.extend(Calendar.prototype, {
|
|||
this._draw(obj);
|
||||
},
|
||||
_prevYear : function(obj) {
|
||||
this._draw(obj);
|
||||
var cal = calendars[this._getuid(obj)];
|
||||
|
||||
cal.date.setFullYear(cal.date.getFullYear()-1);
|
||||
this._draw(obj);
|
||||
},
|
||||
_nextYear : function(obj) {
|
||||
var cal = calendars[this._getuid(obj)];
|
||||
|
||||
cal.date.setFullYear(cal.date.getFullYear()+1);
|
||||
this._draw(obj);
|
||||
}
|
||||
|
|
@ -294,6 +302,8 @@ template.calendar = '<button type="button" class="close"><span>{lang.close_layer
|
|||
<button type="button" class="today">{lang.today}</button>\
|
||||
<button type="button" class="navi prev"><span>{lang.prevmonth}</span></button>\
|
||||
<button type="button" class="navi next"><span>{lang.nextmonth}</span></button>\
|
||||
<button type="button" class="navi prev_year"><span>{lang.prevyear}</span></button>\
|
||||
<button type="button" class="navi next_year"><span>{lang.nextyear}</span></button>\
|
||||
</span>\
|
||||
</caption>\
|
||||
<thead>\
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue