1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-14 11:23:42 +02:00

Style changes for AddSeries lookup.

This commit is contained in:
Mark McDowall 2012-03-02 20:28:40 -08:00
parent 1dcc323c48
commit 692f182b5e
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -71,9 +71,10 @@
$('#addSeriesAccordion').accordion("activate", false);
});
$(document).on('click', '.tvDbLink', function () {
$(document).on('click', '.tvDbLink', function (event) {
var url = $(this).text();
window.open(url, 'thetvdb');
event.preventDefault();
});
</script>
}