Calendar requests are cleaner.

TvDb Episodes are actually added to the list...
pull/4/head
Mark McDowall 12 years ago
parent 0399b18357
commit afcbbf54c7

@ -37,10 +37,11 @@ define(['app', 'Calendar/CalendarItemView'], function (app) {
getEvents: function(start, end, callback){ getEvents: function(start, end, callback){
var bbView = NzbDrone.Calendar.CalendarCollectionView.Instance; 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({ 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) { success:function (calendarCollection) {
callback(calendarCollection.toJSON()); callback(calendarCollection.toJSON());
} }

@ -46,7 +46,7 @@
<div class="span12"> <div class="span12">
<ul id="main-menu"> <ul id="main-menu">
<li><a href="/"><i class="icon-film"></i><br>Series</a></li> <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">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><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> <li><a href="settings"><i class="icon-cogs"></i><br>Settings</a></li>

@ -99,6 +99,8 @@ namespace NzbDrone.Core.Providers
{ {
episode.AirDate = null; episode.AirDate = null;
} }
episodes.Add(episode);
} }
return episodes; return episodes;

Loading…
Cancel
Save