mirror of https://github.com/calzoneman/sync.git
add checkboxes to add as temporary
This commit is contained in:
parent
cec68d0f2a
commit
bf3832fb3a
|
@ -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 <code><iframe></code> and <code><object></code> 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
|
||||
|
|
|
@ -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"));
|
||||
});
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue