Add UI for custom embeds

This commit is contained in:
calzoneman 2013-08-03 15:10:06 -04:00
parent 5e2b0929a9
commit a26df3c92c
5 changed files with 35 additions and 2 deletions

View file

@ -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();