From cd92ba6737c54eb2e3dcf3e617783203d27bbc0b Mon Sep 17 00:00:00 2001 From: Alib Date: Wed, 17 Mar 2010 18:49:10 +0100 Subject: added / in path for browser --- js/istreamdev.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'js') diff --git a/js/istreamdev.js b/js/istreamdev.js index a4932eb..ae823d1 100644 --- a/js/istreamdev.js +++ b/js/istreamdev.js @@ -256,8 +256,8 @@ function gen_channels(category) { $('#streamchannel span.streamButton a').tap(function(event) { event.preventDefault(); json_start(this); - var type = $("#streamchannel").find('span[rel="type"]').html(); - var url = $("#streamchannel").find('span[rel="url"]').html(); + var type = $("#streamchannel").find('span[rel="type"]').text(); + var url = $("#streamchannel").find('span[rel="url"]').text(); var mode = $(this).attr('id'); start_broadcast(type,url,mode); return false; @@ -265,8 +265,8 @@ $('#streamchannel span.streamButton a').tap(function(event) { $('#streamrec span.streamButton a').tap(function(event) { event.preventDefault(); json_start(this); - var type = $("#streamrec").find('span[rel="type"]').html(); - var url = $("#streamrec").find('span[rel="url"]').html(); + var type = $("#streamrec").find('span[rel="type"]').text(); + var url = $("#streamrec").find('span[rel="url"]').text(); var mode = $(this).attr('id'); start_broadcast(type,url,mode); return false; @@ -274,8 +274,8 @@ $('#streamrec span.streamButton a').tap(function(event) { $('#streamvid span.streamButton a').tap(function(event) { event.preventDefault(); json_start(this); - var type = $("#streamvid").find('span[rel="type"]').html(); - var url = $("#streamvid").find('span[rel="url"]').html(); + var type = $("#streamvid").find('span[rel="type"]').text(); + var url = $("#streamvid").find('span[rel="url"]').text(); var mode = $(this).attr('id'); start_broadcast(type,url,mode); return false; @@ -283,7 +283,7 @@ $('#streamvid span.streamButton a').tap(function(event) { $('#streaming span.streamButton a[rel="stopbroadcast"]').tap(function(event) { event.preventDefault(); json_start(this); - var session = $("#streaming").find('span[rel="session"]').html(); + var session = $("#streaming").find('span[rel="session"]').text(); stop_broadcast(session); return false; }); @@ -564,7 +564,7 @@ function gen_browser(path,browser,name,foldertype) { } $('#browser' + browser + ' div[class="toolbar"]').html(toolbar); } - var dataString = 'action=browseFolder&path='+encodeURIComponent(path); + var dataString = 'action=browseFolder&path='+encodeURIComponent(path)+'/'; $.getJSON("bin/backend.php", dataString, function(data) { -- cgit v1.2.3