mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-04-11.git
synced 2024-08-15 00:43:26 +00:00
Show autoplay when playlist is invalid
This commit is contained in:
parent
e6bc5bb35d
commit
b92542ea35
1 changed files with 8 additions and 5 deletions
|
@ -141,12 +141,14 @@
|
||||||
<% if !preferences || preferences && preferences.related_videos %>
|
<% if !preferences || preferences && preferences.related_videos %>
|
||||||
<div class="h-box">
|
<div class="h-box">
|
||||||
|
|
||||||
<% if !plid && !rvs.empty? %>
|
<% if !rvs.empty? %>
|
||||||
<div class="pure-control-group">
|
<div id="continue" <% if plid %>style="display:none"<% end %>>
|
||||||
<label for="continue">Autoplay next video: </label>
|
<div class="pure-control-group">
|
||||||
<input name="continue" onclick="continue_autoplay(this)" id="continue" type="checkbox" <% if params[:continue] %>checked<% end %>>
|
<label for="continue">Autoplay next video: </label>
|
||||||
|
<input name="continue" onclick="continue_autoplay(this)" id="continue" type="checkbox" <% if params[:continue] %>checked<% end %>>
|
||||||
|
</div>
|
||||||
|
<hr>
|
||||||
</div>
|
</div>
|
||||||
<hr>
|
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% rvs.each do |rv| %>
|
<% rvs.each do |rv| %>
|
||||||
|
@ -307,6 +309,7 @@ function get_playlist() {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
playlist.innerHTML = "";
|
playlist.innerHTML = "";
|
||||||
|
document.getElementById('continue').style.display = "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue