Style changes for AddSeries lookup.

pull/2/head
Mark McDowall 13 years ago
parent 1dcc323c48
commit 692f182b5e

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

@ -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>
}
Loading…
Cancel
Save