mirror of
https://github.com/Radarr/Radarr
synced 2024-12-26 01:38:24 +00:00
TheTvDb link is now an icon on AddSeries.
This commit is contained in:
parent
692f182b5e
commit
0ba781fd32
4 changed files with 9 additions and 2 deletions
BIN
NzbDrone.Web/Content/Images/thetvdb.png
Normal file
BIN
NzbDrone.Web/Content/Images/thetvdb.png
Normal file
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…
Reference in a new issue