summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorAlib <aliboba@free.fr>2010-03-17 15:35:27 +0100
committerAlib <aliboba@free.fr>2010-03-17 15:35:27 +0100
commit575e448aa2e01689b4ae116f2b259452ab9890d1 (patch)
treef0b975074b55f5b5065524c07a07031ddc31c431 /js
parent9c323cb8bf75ae760041f8e2579fa7605b892ab5 (diff)
downloadistreamdev-575e448aa2e01689b4ae116f2b259452ab9890d1.tar.gz
istreamdev-575e448aa2e01689b4ae116f2b259452ab9890d1.tar.bz2
now activesession are clickable
Diffstat (limited to 'js')
-rw-r--r--js/istreamdev.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/js/istreamdev.js b/js/istreamdev.js
index a5e33fb..fb71129 100644
--- a/js/istreamdev.js
+++ b/js/istreamdev.js
@@ -129,6 +129,14 @@ $('#audio_but').tap(function(event) {
gen_browser(audio_path,browser,"Audio","aud");
return false;
});
+
+$('#runningsessions li a').tap(function(event) {
+ event.preventDefault();
+ var session = $(this).attr('rel');
+ json_start(this);
+ gen_streaming(session);
+ return false;
+});
// show active sessions
$(document).ready(function(e){
getRunningSessions();
@@ -150,7 +158,7 @@ var dataString = "action=getRunningSessions";
if (type == 'tv') { var pic='tv.png'; }
else if (type == 'rec') { var pic='record.png'; }
else if (type == 'vid') { var pic='video.png'; }
- $('#home #runningsessions').append('<li class="arrow"><a rel="session" href="#"><img class="menuicon" src="img/' + pic + '" /><span class="menuname">*Live: ' + name + '</span></a></li>');
+ $('#home #runningsessions').append('<li class="arrow"><a rel="' + session + '" href="#"><img class="menuicon" src="img/' + pic + '" /><span class="menuname">*Live: ' + name + '</span></a></li>');
});
}
else {