TheTvDb link is now an icon on AddSeries.

pull/2/head
Mark McDowall 13 years ago
parent 692f182b5e
commit 0ba781fd32

Binary file not shown.

After

Width:  |  Height:  |  Size: 541 B

@ -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" />

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

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

Loading…
Cancel
Save