CC-3913: Live Stream: When master switch is turned on, it turns off show switch

- fixed
This commit is contained in:
James 2012-05-30 12:46:05 -04:00
parent 01ed9cdb35
commit e48b2f2a84
1 changed files with 1 additions and 2 deletions

View File

@ -276,7 +276,7 @@ function parseSourceStatus(obj){
function parseSwitchStatus(obj){
if(obj.live_dj_source == "on" && obj.master_dj_source == "off"){
if(obj.live_dj_source == "on"){
live_dj_on_air = true;
}else{
live_dj_on_air = false;
@ -398,7 +398,6 @@ function setSwitchListener(ele){
var sourcename = $(ele).attr('id');
var status_span = $(ele).find("span");
var status = status_span.html();
$.get("/Dashboard/switch-source/format/json/sourcename/"+sourcename+"/status/"+status, function(data){
if(data.error){
alert(data.error);