CC-3430: Live Stream: Admin should be able to kick out the source connection

- Clicking a button on UI triggers sending msg to pypo, which will lead running
'kick' command in liquidsoap.
This commit is contained in:
James 2012-03-14 11:09:59 -04:00
parent 2ee4b227fc
commit c5c9fd7ba8
6 changed files with 50 additions and 6 deletions

View file

@ -363,7 +363,14 @@ function setSwitchListener(ele){
}
function kickSource(ele){
var sourcename = $(ele).attr('id')
var source_connection = $(ele).parent().find(".line-to-switch").attr("class")
if(source_connection.indexOf("off") > 0){
alert("No source is connected to this input.")
return false
}else{
$.get("/Dashboard/disconnect-source/format/json/sourcename/"+sourcename)
}
}
var stream_window = null;