Changeset 5442 for trunk/prototype/modules/calendar/js/init.js
- Timestamp:
- 01/27/12 19:25:06 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/prototype/modules/calendar/js/init.js
r5427 r5442 56 56 { 57 57 $tabs.tabs("select", "#calendar"); 58 $('#calendar').fullCalendar('gotoDate',$(this).siblings('span').html(), Date.getMonthNumberFromName($(this).html() == 'Março' ? 'Mar' : $(this).html()),'01'); 58 var toDate = $('.block-vertical-toolbox .mini-calendar').datepicker("getDate").toString('yyyy-MM-dd').split('-'); 59 $('#calendar').fullCalendar('gotoDate', toDate[0], parseInt(toDate[1]-1), toDate[2] ); 59 60 $('#calendar').fullCalendar( 'changeView', 'agendaDay' ); 60 61 } … … 66 67 $('.ui-datepicker-title .ui-datepicker-month').live('click',function(){ 67 68 $tabs.tabs("select", "#calendar"); 68 $('#calendar').fullCalendar('gotoDate',$(this). html(), '0','01');69 $('#calendar').fullCalendar('gotoDate',$(this).siblings('span').html(), Date.getMonthNumberFromName($(this).html() == 'Março' ? 'Mar' : $(this).html()),'01'); 69 70 $('#calendar').fullCalendar( 'changeView', 'month'); 70 71 }); … … 72 73 $('.ui-datepicker-title .ui-datepicker-year').live('click',function(){ 73 74 $tabs.tabs("select", "#calendar"); 74 var currentDate = $.fullCalendar.formatDate($('#calendar').fullCalendar('getDate'), "yyyy-MM-dd").split('-'); 75 $('#calendar').fullCalendar('gotoDate',$('.ui-datepicker-title .ui-datepicker-year').html(), Date.getMonthNumberFromName($('.ui-datepicker-title .ui-datepicker-month').html()), currentDate[2]); 75 $('#calendar').fullCalendar('gotoDate',$(this).html(), '0', '01'); 76 76 $('.fc-button-year').click(); 77 77 });
Note: See TracChangeset
for help on using the changeset viewer.