1
0
Fork 0
mirror of https://github.com/Radarr/Radarr synced 2024-12-26 09:49:00 +00:00

TheTvDb link is now an icon on AddSeries.

This commit is contained in:
Mark McDowall 2012-03-03 10:58:32 -08:00
parent 692f182b5e
commit 0ba781fd32
4 changed files with 9 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 541 B

View file

@ -159,6 +159,7 @@
<Content Include="Content\Images\redownload.png" />
<Content Include="Content\Images\settings.png" />
<Content Include="Content\Images\stop.png" />
<Content Include="Content\Images\thetvdb.png" />
<Content Include="Content\Images\yellow.png" />
<Content Include="Content\IndexerSettings.css" />
<Content Include="Content\jQueryUI\images\ui-bg_diagonals-thick_30_a32d00_40x40.png" />

View file

@ -65,7 +65,7 @@ function bindSeriesAutoComplete(selector) {
.data("autocomplete")._renderItem = function (ul, item) {
return $("<li></li>")
.data("item.autocomplete", item)
.append("<a>" + item.DisplayedTitle + "<div class='tvDbLink'>" + item.Url + "</div></a>")
.append("<a>" + item.DisplayedTitle + "<div class='tvDbLink' rel='" + item.Url + "'></div></a>")
.appendTo(ul);
};
});

View file

@ -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();
});