|
|
@ -1,4 +1,5 @@
|
|
|
|
@model List<UpcomingEpisodeModel>
|
|
|
|
@model List<UpcomingEpisodeModel>
|
|
|
|
|
|
|
|
@using NzbDrone.Common
|
|
|
|
@using NzbDrone.Web.Helpers
|
|
|
|
@using NzbDrone.Web.Helpers
|
|
|
|
@using NzbDrone.Web.Models
|
|
|
|
@using NzbDrone.Web.Models
|
|
|
|
@{ViewBag.Title = "Upcoming";}
|
|
|
|
@{ViewBag.Title = "Upcoming";}
|
|
|
@ -43,6 +44,11 @@
|
|
|
|
))
|
|
|
|
))
|
|
|
|
.DataBinding(data => data.Ajax().Select("_AjaxBindingYesterday", "Upcoming"))
|
|
|
|
.DataBinding(data => data.Ajax().Select("_AjaxBindingYesterday", "Upcoming"))
|
|
|
|
.Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.AirDateTime).Ascending()).Enabled(true))
|
|
|
|
.Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.AirDateTime).Ascending()).Enabled(true))
|
|
|
|
|
|
|
|
.ClientEvents(clientEvents =>
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (EnviromentProvider.IsProduction)
|
|
|
|
|
|
|
|
clientEvents.OnError("grid_onError");
|
|
|
|
|
|
|
|
})
|
|
|
|
.Render();}
|
|
|
|
.Render();}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -78,6 +84,11 @@
|
|
|
|
))
|
|
|
|
))
|
|
|
|
.DataBinding(data => data.Ajax().Select("_AjaxBindingToday", "Upcoming"))
|
|
|
|
.DataBinding(data => data.Ajax().Select("_AjaxBindingToday", "Upcoming"))
|
|
|
|
.Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.AirDateTime).Ascending()).Enabled(true))
|
|
|
|
.Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.AirDateTime).Ascending()).Enabled(true))
|
|
|
|
|
|
|
|
.ClientEvents(clientEvents =>
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (EnviromentProvider.IsProduction)
|
|
|
|
|
|
|
|
clientEvents.OnError("grid_onError");
|
|
|
|
|
|
|
|
})
|
|
|
|
.Render();}
|
|
|
|
.Render();}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -115,6 +126,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
.DataBinding(data => data.Ajax().Select("_AjaxBindingTomorrow", "Upcoming"))
|
|
|
|
.DataBinding(data => data.Ajax().Select("_AjaxBindingTomorrow", "Upcoming"))
|
|
|
|
.Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.AirDateTime).Ascending()).Enabled(true))
|
|
|
|
.Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.AirDateTime).Ascending()).Enabled(true))
|
|
|
|
|
|
|
|
.ClientEvents(clientEvents =>
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (EnviromentProvider.IsProduction)
|
|
|
|
|
|
|
|
clientEvents.OnError("grid_onError");
|
|
|
|
|
|
|
|
})
|
|
|
|
.Render();}
|
|
|
|
.Render();}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -151,6 +167,11 @@
|
|
|
|
))
|
|
|
|
))
|
|
|
|
.DataBinding(data => data.Ajax().Select("_AjaxBindingWeek", "Upcoming"))
|
|
|
|
.DataBinding(data => data.Ajax().Select("_AjaxBindingWeek", "Upcoming"))
|
|
|
|
.Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.AirDateTime).Ascending()).Enabled(true))
|
|
|
|
.Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.AirDateTime).Ascending()).Enabled(true))
|
|
|
|
|
|
|
|
.ClientEvents(clientEvents =>
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (EnviromentProvider.IsProduction)
|
|
|
|
|
|
|
|
clientEvents.OnError("grid_onError");
|
|
|
|
|
|
|
|
})
|
|
|
|
.Render();}
|
|
|
|
.Render();}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|