From 0ba781fd326b8db75f5d7e807042be66003794a3 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Sat, 3 Mar 2012 10:58:32 -0800 Subject: [PATCH] TheTvDb link is now an icon on AddSeries. --- NzbDrone.Web/Content/Images/thetvdb.png | Bin 0 -> 541 bytes NzbDrone.Web/NzbDrone.Web.csproj | 1 + NzbDrone.Web/Scripts/NzbDrone/AutoComplete.js | 2 +- NzbDrone.Web/Views/AddSeries/Index.cshtml | 8 +++++++- 4 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 NzbDrone.Web/Content/Images/thetvdb.png diff --git a/NzbDrone.Web/Content/Images/thetvdb.png b/NzbDrone.Web/Content/Images/thetvdb.png new file mode 100644 index 0000000000000000000000000000000000000000..b09a0d52342fddd2c60eb9640c4bff3454b4a56a GIT binary patch literal 541 zcmV+&0^Gu!B=tTnbW4K&J|F zDh^q$DS|CpBo3)@5biX0AQViRn2JK5LwZkB4$mJvc>jK%-}n1|Z-{VQ@Skz-uEOS< z?`SVta&OoxNeLb0+SL;Ps22l7&x~>*Hb!r6pVIxW_`Cp?{fpO|U9QXq85tQOa`G6{ zi7}pP-vIi6$YhA>>I%hMH(Vk5dWZE_UAbN^?_hlX`4=FpkWD91GbvYq&j;tuj&l2s z#eGKho~jHWGt`=ZD5mo2tG{9x-{kG|&Z06;dK#I$T_$@3#sH@0NuKh@XdxhKGps%BEMt&TNmp;m7I zNSTKL?M_!#H!WM + diff --git a/NzbDrone.Web/Scripts/NzbDrone/AutoComplete.js b/NzbDrone.Web/Scripts/NzbDrone/AutoComplete.js index bedd563ef..a60d128f1 100644 --- a/NzbDrone.Web/Scripts/NzbDrone/AutoComplete.js +++ b/NzbDrone.Web/Scripts/NzbDrone/AutoComplete.js @@ -65,7 +65,7 @@ function bindSeriesAutoComplete(selector) { .data("autocomplete")._renderItem = function (ul, item) { return $("
  • ") .data("item.autocomplete", item) - .append("" + item.DisplayedTitle + "") + .append("" + item.DisplayedTitle + "") .appendTo(ul); }; }); diff --git a/NzbDrone.Web/Views/AddSeries/Index.cshtml b/NzbDrone.Web/Views/AddSeries/Index.cshtml index 5d28f460f..943409103 100644 --- a/NzbDrone.Web/Views/AddSeries/Index.cshtml +++ b/NzbDrone.Web/Views/AddSeries/Index.cshtml @@ -39,6 +39,12 @@ .tvDbLink { color: #065EFE; + background-repeat: no-repeat; + background-position: 5px center; + background-image:url('../../Content/Images/thetvdb.png'); + width: 22px; + height: 20px; + float: right; } .tvDbLink:hover { @@ -72,7 +78,7 @@ }); $(document).on('click', '.tvDbLink', function (event) { - var url = $(this).text(); + var url = $(this).attr('rel'); window.open(url, 'thetvdb'); event.preventDefault(); });