diff --git a/UI/Calendar/CalendarCollectionView.js b/UI/Calendar/CalendarCollectionView.js index fb1b89142..0e34dacf5 100644 --- a/UI/Calendar/CalendarCollectionView.js +++ b/UI/Calendar/CalendarCollectionView.js @@ -15,7 +15,7 @@ define(['app', 'Calendar/CalendarItemView'], function () { this.calendar = new NzbDrone.Calendar.CalendarCollection(); }, onCompositeCollectionRendered: function () { - $(this.ui.calendar).fullCalendar({ + $(this.ui.calendar).empty().fullCalendar({ allDayDefault : false, ignoreTimezone: false, weekMode : 'variable', diff --git a/UI/Content/fullcalendar.css b/UI/Content/fullcalendar.css index 41171e961..acae725d2 100644 --- a/UI/Content/fullcalendar.css +++ b/UI/Content/fullcalendar.css @@ -1,600 +1,579 @@ -/* - * FullCalendar v1.5.4 Stylesheet - * - * Copyright (c) 2011 Adam Shaw - * Dual licensed under the MIT and GPL licenses, located in - * MIT-LICENSE.txt and GPL-LICENSE.txt respectively. - * - * Date: Tue Sep 4 23:38:33 2012 -0700 - * +/*! + * FullCalendar v1.6.1 Stylesheet + * Docs & License: http://arshaw.com/fullcalendar/ + * (c) 2013 Adam Shaw */ -.fc { - direction: ltr; - text-align: left; -} +.fc { + direction: ltr; + text-align: left; + } + .fc table { - border-collapse: collapse; - border-spacing: 0; -} - + border-collapse: collapse; + border-spacing: 0; + } + html .fc, .fc table { - font-size: 1em; -} - + font-size: 1em; + } + .fc td, .fc th { - padding: 0; - vertical-align: top; -} + padding: 0; + vertical-align: top; + } + + /* Header ------------------------------------------------------------------------*/ .fc-header td { - white-space: nowrap; -} + white-space: nowrap; + } .fc-header-left { - width: 25%; - text-align: left; -} - + width: 25%; + text-align: left; + } + .fc-header-center { - text-align: center; -} - + text-align: center; + } + .fc-header-right { - width: 25%; - text-align: right; -} - + width: 25%; + text-align: right; + } + .fc-header-title { - display: inline-block; - vertical-align: top; -} - + display: inline-block; + vertical-align: top; + } + .fc-header-title h2 { - margin-top: 0; - white-space: nowrap; -} - + margin-top: 0; + white-space: nowrap; + } + .fc .fc-header-space { - padding-left: 10px; -} - + padding-left: 10px; + } + .fc-header .fc-button { - margin-bottom: 1em; - vertical-align: top; -} - + margin-bottom: 1em; + vertical-align: top; + } + /* buttons edges butting together */ .fc-header .fc-button { - margin-right: -1px; -} - -.fc-header .fc-corner-right { - margin-right: 1px; /* back to normal */ -} - -.fc-header .ui-corner-right { - margin-right: 0; /* back to normal */ -} - + margin-right: -1px; + } + +.fc-header .fc-corner-right, /* non-theme */ +.fc-header .ui-corner-right { /* theme */ + margin-right: 0; /* back to normal */ + } + /* button layering (for border precedence) */ - + .fc-header .fc-state-hover, .fc-header .ui-state-hover { - z-index: 2; -} - + z-index: 2; + } + .fc-header .fc-state-down { - z-index: 3; -} + z-index: 3; + } .fc-header .fc-state-active, .fc-header .ui-state-active { - z-index: 4; -} - + z-index: 4; + } + + + /* Content ------------------------------------------------------------------------*/ - + .fc-content { - clear: both; -} - + clear: both; + } + .fc-view { - width: 100%; /* needed for view switching (when view is absolute) */ - /*overflow: hidden;*/ -} + width: 100%; /* needed for view switching (when view is absolute) */ + overflow: hidden; + } + + /* Cell Styles ------------------------------------------------------------------------*/ -.fc-widget-header, /*
"; + } + for (i=0; i | "; } - s += - " | " + + "" + + " | "; + } + for (j=0; j" +
+ " ";
+ if (showNumbers) {
+ html += " " +
+ "" + cellDate.getDate() + " ";
+ }
+ html += "" +
+ " " +
+ " | ";
}
- s +=
- "";
+
+ html += "";
}
- s +=
- "
---|
"; + " | |
---|---|
"; + } + else { + s += " | "; + } + for (i=0; i |