diff --git a/templates/channel.jade b/templates/channel.jade index 2a62a1fa..a09ccce8 100644 --- a/templates/channel.jade +++ b/templates/channel.jade @@ -87,6 +87,10 @@ html(lang="en") button#queue_next.btn.btn-default Next span.input-group-btn button#queue_end.btn.btn-default At End + .checkbox + label + input.add-temp(type="checkbox") + | Add as temporary #searchcontrol.collapse.plcontrol-collapse.col-lg-12.col-md-12 .vertical-spacer .input-group @@ -95,6 +99,10 @@ html(lang="en") button#library_search.btn.btn-default Library span.input-group-btn button#youtube_search.btn.btn-default YouTube + .checkbox + label + input.add-temp(type="checkbox") + | Add as temporary ul#library.videolist.col-lg-12.col-md-12 #customembed.collapse.plcontrol-collapse.col-lg-12.col-md-12 .vertical-spacer @@ -104,6 +112,10 @@ html(lang="en") button#ce_queue_next.btn.btn-default Next span.input-group-btn button#ce_queue_end.btn.btn-default At End + .checkbox + label + input.add-temp(type="checkbox") + | Add as temporary | Paste the embed code below and click Next or At End. | Acceptable embed codes are <iframe> and <object> tags. textarea#customembed-content.input-block-level.form-control(rows="3") @@ -113,6 +125,10 @@ html(lang="en") input#userpl_name.form-control(type="text", placeholder="Playlist Name") span.input-group-btn button#userpl_save.btn.btn-default Save + .checkbox + label + input.add-temp(type="checkbox") + | Add as temporary ul#userpl_list.videolist #queuefail.col-lg-12.col-md-12 .vertical-spacer diff --git a/www/assets/js/ui.js b/www/assets/js/ui.js index bdba5511..c71b9974 100644 --- a/www/assets/js/ui.js +++ b/www/assets/js/ui.js @@ -323,7 +323,8 @@ function queue(pos, src) { id: content, title: title, pos: pos, - type: "cu" + type: "cu", + temp: $(".add-temp").prop("checked") }); } else { var link = $("#mediaurl").val(); @@ -337,7 +338,8 @@ function queue(pos, src) { socket.emit("queue", { id: data.id, type: data.type, - pos: pos + pos: pos, + temp: $(".add-temp").prop("checked") }); } } @@ -628,3 +630,7 @@ var toggleUserlist = function () { $("#usercount").click(toggleUserlist); $("#userlisttoggle").click(toggleUserlist); + +$(".add-temp").change(function () { + $(".add-temp").prop("checked", $(this).prop("checked")); +}); diff --git a/www/assets/js/util.js b/www/assets/js/util.js index 5f542842..b08a50ce 100644 --- a/www/assets/js/util.js +++ b/www/assets/js/util.js @@ -983,7 +983,8 @@ function addLibraryButtons(li, id, source) { socket.emit("queue", { id: id, pos: "next", - type: type + type: type, + temp: $(".add-temp").prop("checked") }); }) .appendTo(btns); @@ -994,7 +995,8 @@ function addLibraryButtons(li, id, source) { socket.emit("queue", { id: id, pos: "end", - type: type + type: type, + temp: $(".add-temp").prop("checked") }); }) .appendTo(btns);