Style changes for AddSeries lookup.
This commit is contained in:
parent
1dcc323c48
commit
692f182b5e
|
@ -65,8 +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 + "</a>")
|
.append("<a>" + item.DisplayedTitle + "<div class='tvDbLink'>" + item.Url + "</div></a>")
|
||||||
.append("<div class='tvDbLink'>" + item.Url + "</div>")
|
|
||||||
.appendTo(ul);
|
.appendTo(ul);
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
|
@ -71,9 +71,10 @@
|
||||||
$('#addSeriesAccordion').accordion("activate", false);
|
$('#addSeriesAccordion').accordion("activate", false);
|
||||||
});
|
});
|
||||||
|
|
||||||
$(document).on('click', '.tvDbLink', function () {
|
$(document).on('click', '.tvDbLink', function (event) {
|
||||||
var url = $(this).text();
|
var url = $(this).text();
|
||||||
window.open(url, 'thetvdb');
|
window.open(url, 'thetvdb');
|
||||||
|
event.preventDefault();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
}
|
}
|
Loading…
Reference in New Issue