From 70127125c2b1762e5f48a61a519b6317b6f2a799 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Tue, 29 Oct 2013 17:30:36 -0700 Subject: [PATCH] Fixed: History taking a long time to change pages Fixed: Series search results will show the year in italics if its not part of the title --- src/NzbDrone.Api/History/HistoryResource.cs | 6 ++++-- src/UI/Handlebars/Helpers/Series.js | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/NzbDrone.Api/History/HistoryResource.cs b/src/NzbDrone.Api/History/HistoryResource.cs index 0251e9354..fe572a25c 100644 --- a/src/NzbDrone.Api/History/HistoryResource.cs +++ b/src/NzbDrone.Api/History/HistoryResource.cs @@ -1,6 +1,8 @@ using System; using System.Collections.Generic; +using NzbDrone.Api.Episodes; using NzbDrone.Api.REST; +using NzbDrone.Api.Series; using NzbDrone.Core.History; using NzbDrone.Core.Tv; @@ -21,7 +23,7 @@ namespace NzbDrone.Api.History public Dictionary Data { get; set; } - public Episode Episode { get; set; } - public Core.Tv.Series Series { get; set; } + public EpisodeResource Episode { get; set; } + public SeriesResource Series { get; set; } } } diff --git a/src/UI/Handlebars/Helpers/Series.js b/src/UI/Handlebars/Helpers/Series.js index 69022243c..077b87814 100644 --- a/src/UI/Handlebars/Helpers/Series.js +++ b/src/UI/Handlebars/Helpers/Series.js @@ -68,6 +68,6 @@ define( return this.title; } - return '{0} ({1})'.format(this.title, this.year); + return new Handlebars.SafeString('{0} ({1})'.format(this.title, this.year)); }); });