Changeset 6912 for sandbox/2.4.2-expresso1/prototype/modules
- Timestamp:
- 07/30/12 16:30:19 (12 years ago)
- Location:
- sandbox/2.4.2-expresso1/prototype/modules/calendar
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/2.4.2-expresso1/prototype/modules/calendar/css/print.css
r6904 r6912 69 69 padding: 0px; 70 70 } 71 72 73 .week .event-on-day{ 74 font: 10px arial; 75 margin: 5px 0; 76 } 77 .week { 78 79 min-width: 600px; 80 min-height: 400px; 81 background : #F4F6FA; 82 border: 1px solid #DCE7FC; 83 text-align: center; 84 float: left; 85 } 86 .week .name-month { 87 font: 20px arial; 88 color: #8EB2FF; 89 margin: 0 0 15px 0; 90 } 91 .week .name-month img { 92 margin: 3 px 0 0 0; 93 width: 20px; 94 height: 20px; 95 } 96 .week span { 97 font: 14px arial; 98 display: block; 99 100 } 101 .week .days ul { 102 list-style: none; 103 display: block; 104 105 } 106 107 .week ul li{ 108 float: left; 109 display: inline; 110 border: 1px solid #D7D7FF; 111 width: 100px; 112 } 113 .week .all-day-line{ 114 border: 0; 115 116 } 117 .week .event-all-day{ 118 margin: 3px 0; 119 font: 10px arial; 120 } 121 .week .all-day-line .write{ 122 margin:-3px 0 0 0; 123 font-weight: bold; 124 border-left: 1px solid #D7D7FF; 125 border-top: 1px solid #D7D7FF; 126 border-bottom: 1px solid #D7D7FF; 127 128 } 129 .week .all-day{ 130 border-top: 1px solid #D7D7FF; 131 border-bottom: 1px solid #D7D7FF; 132 } 71 133 .fc-year-have-event{ 72 134 border:2px solid #9cf !important; -
sandbox/2.4.2-expresso1/prototype/modules/calendar/js/helpers.js
r6904 r6912 128 128 //var html = DataLayer.render( path + 'templates/attendee_permissions.ejs', {} ); 129 129 var print = $('.fc-header-right').find('.fc-button.fc-button-agendaDay').clone(); 130 /* 131 $('.fc-header-right').find('.fc-button-year').toggleClass('fc-corner-right'); 132 print.addClass('fc-corner-right'); 133 print.addClass('fc-button-print'); 134 print.removeClass('fc-button-agendaDay'); 135 print.removeClass('fc-corner-left'); 136 print.find('.fc-button-content').html('Imprimir'); 137 $('.fc-header-right').append(print); 138 $('.fc-button-print').click(function(){ 139 var window_print = window.open('','ExpressoCalendar','width=600,height=600,scrollbars=yes'); 140 window_print.document.open(); 141 142 143 var end = $("#calendar").fullCalendar('getView').visEnd.getTime()/1000; 144 var start = $("#calendar").fullCalendar('getView').visStart.getTime()/1000; 145 var criteria = DataLayer.criteria("schedulable:calendar", {'start':start, 'end':end} ); 146 147 var data = DataLayer.get("schedulable:print", criteria); 148 149 150 if($("#calendar").fullCalendar('getView').name == "month"){ 151 152 window_print.document.write('<link rel="stylesheet" type"text/css" href="../prototype/modules/calendar/css/calendar_print.css" >' + DataLayer.render('templates/print_month.ejs', { 153 'InfoPage' : $("#calendar").fullCalendar('getView').title, 154 'days' : data 155 } )); 156 } else if($("#calendar").fullCalendar('getView').name == "agendaWeek"){ 157 158 window_print.document.write('<link rel="stylesheet" type"text/css" href="../prototype/modules/calendar/css/calendar_print.css" >' + DataLayer.render('templates/print_week.ejs', { 159 'InfoPage' : $("#calendar").fullCalendar('getView').title, 160 'days' : data 161 } )); 162 } 163 //window_print.document.close(); 164 window_print.print(); 165 }); 166 */ 167 168 169 130 170 $('.fc-header-right').find('.fc-button-year').toggleClass('fc-corner-right'); 131 171 print.addClass('fc-corner-right'); … … 156 196 'title': 'Calendário Diário' 157 197 } )); 198 <<<<<<< .mine 199 } 200 201 if($("#calendar").fullCalendar('getView').name == "agendaWeek"){ 202 203 window_print.document.write(DataLayer.render('templates/calendar_week_print.ejs', { 204 'InfoPage' : $("#calendar").fullCalendar('getView').title, 205 'days' : data, 206 'title': 'Calendário Semanal' 207 } )); 208 209 var aux = 0; 210 211 212 setTimeout(function(){$(window_print.document).find(".all-day").each(function(){ 213 if($(this).height() > aux) 214 aux = $(this).height(); 215 }) 216 217 $(window_print.document).find(".all-day").each(function(){ 218 $(this).height(aux); 219 }); 220 $(window_print.document).find(".all-day-line .write").height(aux); 221 aux = 0; 222 },20); 223 224 } 225 ======= 158 226 } 159 227 if($("#calendar").fullCalendar('getView').name == "year"){ … … 163 231 } )); 164 232 } 233 >>>>>>> .r6911 165 234 window_print.document.close(); 166 235 window_print.print(); 167 236 }); 237 168 238 } 169 239
Note: See TracChangeset
for help on using the changeset viewer.