Fix setPlaying() not clearing

Some div's were moved and renamed, but this function wasn't updated.
This commit is contained in:
Zorchenhimer 2019-03-13 14:56:33 -04:00
parent 4025622415
commit 447768f8dc

View File

@ -13,12 +13,13 @@ function initPlayer() {
function setPlaying(title, link) { function setPlaying(title, link) {
if (title === "") { if (title === "") {
$('#playingDiv').hide(); $('#playing').hide();
$('#playinglink').hide();
document.title = "Movie Night" document.title = "Movie Night"
return; return;
} }
$('#playingDiv').show(); $('#playing').show();
$('#playing').text(title); $('#playing').text(title);
document.title = "Movie Night | " + title document.title = "Movie Night | " + title
@ -124,4 +125,4 @@ function chatOnload() {
evt.preventDefault(); evt.preventDefault();
} }
}) })
} }