Changeset 6894 for sandbox/2.4.2-expresso1/prototype/modules/calendar/js
- Timestamp:
- 07/27/12 16:38:29 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/2.4.2-expresso1/prototype/modules/calendar/js/helpers.js
r6893 r6894 124 124 window_print.print(); 125 125 }); */ 126 127 128 //var html = DataLayer.render( path + 'templates/attendee_permissions.ejs', {} ); 129 var print = $('.fc-header-right').find('.fc-button.fc-button-agendaDay').clone(); 130 $('.fc-header-right').find('.fc-button-year').toggleClass('fc-corner-right'); 131 print.addClass('fc-corner-right'); 132 print.addClass('fc-button-print'); 133 print.removeClass('fc-button-agendaDay'); 134 print.removeClass('fc-corner-left'); 135 print.find('.fc-button-content').html('Imprimir'); 136 $('.fc-header-right').append(print); 137 $('.fc-button-print').click(function(){ 138 var window_print = window.open('','ExpressoCalendar','width=600,height=600,scrollbars=yes'); 139 window_print.document.open(); 140 if($("#calendar").fullCalendar('getView').name == "month"){ 141 var end = $("#calendar").fullCalendar('getView').visEnd.getTime()/1000; 142 var start = $("#calendar").fullCalendar('getView').visStart.getTime()/1000; 143 var criteria = DataLayer.criteria("schedulable:calendar", {'start':start, 'end':end} ); 144 145 var data = DataLayer.get("schedulable:print", criteria); 146 147 window_print.document.write('<link rel="stylesheet" type"text/css" href="../prototype/modules/calendar/css/calendar_print.css" >' + DataLayer.render('templates/print_month.ejs', { 148 'InfoPage' : $("#calendar").fullCalendar('getView').title, 149 'days' : data 150 } )); 151 } 152 //window_print.document.close(); 153 window_print.print(); 154 }); 126 155 } 127 156
Note: See TracChangeset
for help on using the changeset viewer.