From 575e448aa2e01689b4ae116f2b259452ab9890d1 Mon Sep 17 00:00:00 2001 From: Alib Date: Wed, 17 Mar 2010 15:35:27 +0100 Subject: now activesession are clickable --- index.html | 2 +- js/istreamdev.js | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index e3e2fd8..e052a5b 100644 --- a/index.html +++ b/index.html @@ -267,7 +267,7 @@ - + \ No newline at end of file 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('
  • *Live: ' + name + '
  • '); + $('#home #runningsessions').append('
  • *Live: ' + name + '
  • '); }); } else { -- cgit v1.2.3