From 8d3d14860d21daa19789693d1d54066e9a1d38dd Mon Sep 17 00:00:00 2001 From: James Date: Thu, 10 Nov 2011 16:32:56 -0500 Subject: [PATCH] CC-2959: Stream Setting: Status box design for each stream - integration with new status box design --- .../public/js/airtime/preferences/streamsetting.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/airtime_mvc/public/js/airtime/preferences/streamsetting.js b/airtime_mvc/public/js/airtime/preferences/streamsetting.js index a97df38ca..d4198868f 100644 --- a/airtime_mvc/public/js/airtime/preferences/streamsetting.js +++ b/airtime_mvc/public/js/airtime/preferences/streamsetting.js @@ -86,7 +86,15 @@ function checkLiquidsoapStatus(){ status = obj[key]; } } - $("#s"+id+"Liquidsoap-error-msg-element").html(status); + var html + if(status == "OK"){ + html = '

Streaming server connection is working

' + }else if(status == "N/A"){ + html = '

Cannot connect to the streaming server

This stream is disabled

' + }else{ + html = '

Can not connect to the streaming server

'+status+'

' + } + $("#s"+id+"Liquidsoap-error-msg-element").html(html); } }); } @@ -150,6 +158,6 @@ $(document).ready(function() { }) showErrorSections() - setInterval('checkLiquidsoapStatus()', 5000) + setInterval('checkLiquidsoapStatus()', 7000) }); \ No newline at end of file