1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-14 11:23:42 +02: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\redownload.png" />
<Content Include="Content\Images\settings.png" /> <Content Include="Content\Images\settings.png" />
<Content Include="Content\Images\stop.png" /> <Content Include="Content\Images\stop.png" />
<Content Include="Content\Images\thetvdb.png" />
<Content Include="Content\Images\yellow.png" /> <Content Include="Content\Images\yellow.png" />
<Content Include="Content\IndexerSettings.css" /> <Content Include="Content\IndexerSettings.css" />
<Content Include="Content\jQueryUI\images\ui-bg_diagonals-thick_30_a32d00_40x40.png" /> <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) { .data("autocomplete")._renderItem = function (ul, item) {
return $("<li></li>") return $("<li></li>")
.data("item.autocomplete", item) .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); .appendTo(ul);
}; };
}); });

View File

@ -39,6 +39,12 @@
.tvDbLink { .tvDbLink {
color: #065EFE; 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 { .tvDbLink:hover {
@ -72,7 +78,7 @@
}); });
$(document).on('click', '.tvDbLink', function (event) { $(document).on('click', '.tvDbLink', function (event) {
var url = $(this).text(); var url = $(this).attr('rel');
window.open(url, 'thetvdb'); window.open(url, 'thetvdb');
event.preventDefault(); event.preventDefault();
}); });