1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-03 17:59:21 +02:00

Add broadcast templates

This commit is contained in:
Afterster 2014-02-09 02:06:27 +01:00
parent 265bd394cb
commit 916057fda7
27 changed files with 670 additions and 281 deletions

View file

@ -85,6 +85,60 @@ function handlePlaylistAction(url, id) {
$("#playlistdialog").dialog("close");
}
/************************************************************/
/* Dialog selection to start a broadcast */
/************************************************************/
var closebroadcasts;
function showBroadcastsDialog(e) {
$("#broadcastsdialog").dialog("close");
var parent = this;
parent.contentUrl = jsAjaxServer + '/ajax.server.php?page=player&action=show_broadcasts';
parent.editDialogId = '<div id="broadcastsdialog"></div>';
$(parent.editDialogId).dialog({
modal: false,
dialogClass: 'broadcastsdialogstyle',
resizable: false,
draggable: false,
width: 150,
height: 70,
autoOpen: false,
open: function () {
closebroadcasts = 1;
$(document).bind('click', broverlayclickclose);
$(this).load(parent.contentUrl, function() {
$('#broadcastsdialog').focus();
});
},
focus: function() {
closebroadcasts = 0;
},
close: function (e) {
$(document).unbind('click');
$(this).empty();
$(this).dialog("destroy");
}
});
$("#broadcastsdialog").dialog("option", "position", [e.clientX - 180, e.clientY]);
$("#broadcastsdialog").dialog("open");
closebroadcasts = 0;
}
function broverlayclickclose() {
if (closebroadcasts) {
$("#broadcastsdialog").dialog("close");
}
closebroadcasts = 1;
}
function handleBroadcastAction(url, id) {
ajaxPut(url, id);
$("#broadcastsdialog").dialog("close");
}
/***************************************************/
/* Edit modal dialog for artists, albums and songs */
/***************************************************/