Add UI for custom embeds
This commit is contained in:
parent
5e2b0929a9
commit
a26df3c92c
5 changed files with 35 additions and 2 deletions
|
|
@ -228,6 +228,15 @@ $("#queue").sortable({
|
|||
$("#queue").disableSelection();
|
||||
|
||||
function queue(pos) {
|
||||
if($("#customembed_code").val()) {
|
||||
socket.emit("queue", {
|
||||
id: $("#customembed_code").val(),
|
||||
type: "cu",
|
||||
pos: pos
|
||||
});
|
||||
$("#customembed_code").val("");
|
||||
return;
|
||||
}
|
||||
var links = $("#mediaurl").val().split(",");
|
||||
if(pos == "next") {
|
||||
links = links.reverse();
|
||||
|
|
@ -286,6 +295,13 @@ $("#voteskip").click(function() {
|
|||
$("#voteskip").attr("disabled", true);
|
||||
});
|
||||
|
||||
$("#customembed_btn").click(function () {
|
||||
if($("#customembed_entry").css("display") == "none")
|
||||
$("#customembed_entry").show("blind");
|
||||
else
|
||||
$("#customembed_entry").hide("blind");
|
||||
});
|
||||
|
||||
$("#getplaylist").click(function() {
|
||||
var callback = function(data) {
|
||||
PLAYER.hide();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue