1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-05 02:22:31 +01:00

Calendar requests are cleaner.

TvDb Episodes are actually added to the list...
This commit is contained in:
Mark McDowall 2013-02-25 22:47:30 -08:00
parent 0399b18357
commit afcbbf54c7
3 changed files with 6 additions and 3 deletions

View File

@ -37,10 +37,11 @@ define(['app', 'Calendar/CalendarItemView'], function (app) {
getEvents: function(start, end, callback){
var bbView = NzbDrone.Calendar.CalendarCollectionView.Instance;
var startDate = Date.create(start).format(Date.ISO8601_DATETIME);
var endDate = Date.create(end).format(Date.ISO8601_DATETIME);
bbView.calendar.fetch({
data:{ start: Date.create(start).format(Date.ISO8601_DATETIME), end: Date.create(end).format(Date.ISO8601_DATETIME) },
data:{ start: startDate, end: endDate },
success:function (calendarCollection) {
callback(calendarCollection.toJSON());
}

View File

@ -46,7 +46,7 @@
<div class="span12">
<ul id="main-menu">
<li><a href="/"><i class="icon-film"></i><br>Series</a></li>
<li><a href="/upcoming"><i class="icon-calendar"></i><br>Calendar</a></li>
<li><a href="/calendar"><i class="icon-calendar"></i><br>Calendar</a></li>
<li><span class="label label-important pull-right">08</span><a href="history"><i class="icon-time"></i><br>History</a></li>
<li><span class="label label-important pull-right">04</span><a href="missing"><i class="icon-folder-open"></i><br>Missing</a></li>
<li><a href="settings"><i class="icon-cogs"></i><br>Settings</a></li>

View File

@ -99,6 +99,8 @@ public virtual IList<Episode> GetEpisodes(int tvDbSeriesId)
{
episode.AirDate = null;
}
episodes.Add(episode);
}
return episodes;