mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-31 09:09:59 +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
|
|
@ -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