diff options
| author | Omar Roth <omarroth@hotmail.com> | 2018-11-15 18:05:10 -0600 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2018-11-15 18:05:10 -0600 |
| commit | b92542ea35f95d20a6a375ac8d6bfe865c12fd08 (patch) | |
| tree | 238e3a6aab749671030802e3fae295686f7dd71f | |
| parent | e6bc5bb35dbaa3dc268c272fe3f9d0d62502c1c6 (diff) | |
| download | invidious-b92542ea35f95d20a6a375ac8d6bfe865c12fd08.tar.gz invidious-b92542ea35f95d20a6a375ac8d6bfe865c12fd08.tar.bz2 invidious-b92542ea35f95d20a6a375ac8d6bfe865c12fd08.zip | |
Show autoplay when playlist is invalid
| -rw-r--r-- | src/invidious/views/watch.ecr | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/invidious/views/watch.ecr b/src/invidious/views/watch.ecr index ba3692e2..9dbd8834 100644 --- a/src/invidious/views/watch.ecr +++ b/src/invidious/views/watch.ecr @@ -141,12 +141,14 @@ <% if !preferences || preferences && preferences.related_videos %> <div class="h-box"> - <% if !plid && !rvs.empty? %> - <div class="pure-control-group"> - <label for="continue">Autoplay next video: </label> - <input name="continue" onclick="continue_autoplay(this)" id="continue" type="checkbox" <% if params[:continue] %>checked<% end %>> + <% if !rvs.empty? %> + <div id="continue" <% if plid %>style="display:none"<% end %>> + <div class="pure-control-group"> + <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> - <hr> <% end %> <% rvs.each do |rv| %> @@ -307,6 +309,7 @@ function get_playlist() { } } else { playlist.innerHTML = ""; + document.getElementById('continue').style.display = ""; } } }; |
