diff --git a/public/css/fullcalendar.print.css b/public/css/fullcalendar.print.css new file mode 100644 index 000000000..a678c7fdf --- /dev/null +++ b/public/css/fullcalendar.print.css @@ -0,0 +1,61 @@ +/* + * FullCalendar v1.5 Print Stylesheet + * + * Include this stylesheet on your page to get a more printer-friendly calendar. + * When including this stylesheet, use the media='print' attribute of the tag. + * Make sure to include this stylesheet IN ADDITION to the regular fullcalendar.css. + * + * Copyright (c) 2011 Adam Shaw + * Dual licensed under the MIT and GPL licenses, located in + * MIT-LICENSE.txt and GPL-LICENSE.txt respectively. + * + * Date: Sat Mar 19 18:59:37 2011 -0700 + * + */ + + + /* Events +-----------------------------------------------------*/ + +.fc-event-skin { + background: none !important; + color: #000 !important; + } + +/* horizontal events */ + +.fc-event-hori { + border-width: 0 0 1px 0 !important; + border-bottom-style: dotted !important; + border-bottom-color: #000 !important; + padding: 1px 0 0 0 !important; + } + +.fc-event-hori .fc-event-inner { + border-width: 0 !important; + padding: 0 1px !important; + } + +/* vertical events */ + +.fc-event-vert { + border-width: 0 0 0 1px !important; + border-left-style: dotted !important; + border-left-color: #000 !important; + padding: 0 1px 0 0 !important; + } + +.fc-event-vert .fc-event-inner { + border-width: 0 !important; + padding: 1px 0 !important; + } + +.fc-event-bg { + display: none !important; + } + +.fc-event .ui-resizable-handle { + display: none !important; + } + + diff --git a/public/js/airtime/schedule/full-calendar-functions.js b/public/js/airtime/schedule/full-calendar-functions.js index 18b5dc7a0..ce53f9737 100644 --- a/public/js/airtime/schedule/full-calendar-functions.js +++ b/public/js/airtime/schedule/full-calendar-functions.js @@ -175,17 +175,11 @@ function eventRender(event, element, view) { .css('margin-top', '5px') .css('margin-left', 'auto') .css('margin-right', 'auto') - .css('text-align', 'center') .progressbar({ value: event.percent }); - if(event.percent === 0) { - // even at 0, the bar still seems to display a little bit of progress... - div.find("div").hide(); - } - - $(element).find(".fc-event-title").after(div); + $(element).find(".fc-event-content").append(div); } //add the record/rebroadcast icons if needed. @@ -228,16 +222,6 @@ function eventAfterRender( event, element, view ) { {xposition: "mouse", yposition: "mouse"}); } -function eventClick(event, jsEvent, view) { - var x; -} - -function eventMouseover(event, jsEvent, view) { -} - -function eventMouseout(event, jsEvent, view) { -} - function eventDrop(event, dayDelta, minuteDelta, allDay, revertFunc, jsEvent, ui, view) { var url; diff --git a/public/js/airtime/schedule/schedule.js b/public/js/airtime/schedule/schedule.js index 9561785a3..40a56a68c 100644 --- a/public/js/airtime/schedule/schedule.js +++ b/public/js/airtime/schedule/schedule.js @@ -265,9 +265,6 @@ $(window).load(function() { dayClick: dayClick, eventRender: eventRender, eventAfterRender: eventAfterRender, - eventClick: eventClick, - eventMouseover: eventMouseover, - eventMouseout: eventMouseout, eventDrop: eventDrop, eventResize: eventResize });