diff options
author | Alib <aliboba@free.fr> | 2010-03-17 16:41:44 +0100 |
---|---|---|
committer | Alib <aliboba@free.fr> | 2010-03-17 16:41:44 +0100 |
commit | 5c3e621658c2cd1b35ba8b46acf055eaad6ff283 (patch) | |
tree | 0d0c23bbb686af1b90a7d4c2c49836ce9d887cb5 /js | |
parent | 1012e0af0746ed8aee4fe4a372020758ea87ffdf (diff) | |
download | istreamdev-5c3e621658c2cd1b35ba8b46acf055eaad6ff283.tar.gz istreamdev-5c3e621658c2cd1b35ba8b46acf055eaad6ff283.tar.bz2 |
debug active sessions
Diffstat (limited to 'js')
-rw-r--r-- | js/istreamdev.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/js/istreamdev.js b/js/istreamdev.js index f6f3304..84321dc 100644 --- a/js/istreamdev.js +++ b/js/istreamdev.js @@ -69,6 +69,7 @@ $.getJSON("bin/backend.php", $('#home_but').tap(function(event) {
event.preventDefault();
getRunningSessions();
+ reinitDivs();
jQT.goTo('#home','flip');
});
@@ -88,6 +89,12 @@ function hide_loader() { $('a').removeClass('active');
}
+function reinitDivs() {
+ $('#categories #cat_menu').html('');
+ $('#channels #chan_menu').html('');
+ $('#timers ul[rel="timers"]').html('');
+}
+
// [/GENERIC STUFF]
// [HOME SECTION]
@@ -150,7 +157,7 @@ var dataString = "action=getRunningSessions"; dataString,
function(data){
$('#home #runningsessions').append('<li><span class="menutitle">SESSIONS</span></li>');
- if ( data.broadcast[0].session ) {
+ if ( data.broadcast.length > 1 ) {
$.each(data.broadcast, function(i,broadcast){
session = broadcast.session;
name = broadcast.name;
|