feat: Clear search results when show is selected
This commit is contained in:
parent
4869cad916
commit
7a2fb5882c
@ -183,6 +183,11 @@ async function searchShows() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Clear search results when a show is selected
|
||||||
|
function clearSearchResults() {
|
||||||
|
searchResultsEl.innerHTML = '';
|
||||||
|
}
|
||||||
|
|
||||||
// Test TVDB API connectivity
|
// Test TVDB API connectivity
|
||||||
async function testTVDBAPI() {
|
async function testTVDBAPI() {
|
||||||
try {
|
try {
|
||||||
@ -249,6 +254,9 @@ async function selectShow(show) {
|
|||||||
console.log('Selected show:', show);
|
console.log('Selected show:', show);
|
||||||
currentShow = show;
|
currentShow = show;
|
||||||
|
|
||||||
|
// Clear search results when a show is selected
|
||||||
|
clearSearchResults();
|
||||||
|
|
||||||
// Display show title
|
// Display show title
|
||||||
document.getElementById('show-title').textContent = show.seriesName || show.name;
|
document.getElementById('show-title').textContent = show.seriesName || show.name;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user