added UI to toggle autoplaylist repeat option

This commit is contained in:
Robb Ebright 2017-03-31 00:00:19 -04:00
parent 7a944ac9ce
commit c12ad4ea4f
13 changed files with 64 additions and 2 deletions

View file

@ -269,6 +269,7 @@ function setAddShowEvents(form) {
if(!form.find("#add_show_has_autoplaylist").attr('checked')) {
form.find("#add_show_playlist_dropdown").hide();
form.find("#add_show_autoplaylist_repeat").hide();
}
else {
$("#add_show_playlist_dropdown").show();
@ -300,12 +301,14 @@ function setAddShowEvents(form) {
form.find("#add_show_has_autoplaylist").click(function(){
$(this).blur();
form.find("#add_show_playlist_dropdown").toggle();
form.find("#add_show_autoplaylist_repeat").toggle();
var checkBoxSelected = false;
//must switch rebroadcast displays
if(form.find("#add_show_has_autoplaylist").attr('checked')) {
form.find("#add_show_playlist_dropdown").show();
form.find("#add_show_autoplaylist_repeat").show();
}
else {
form.find("#add_show_playlist_downdown").hide();