summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlib <aliboba@free.fr>2010-03-17 18:49:10 +0100
committerAlib <aliboba@free.fr>2010-03-17 18:49:10 +0100
commitcd92ba6737c54eb2e3dcf3e617783203d27bbc0b (patch)
tree1f8f657f8868e98d3084303e36463c05f799ee07
parentc178fdfb5bd45e45e40af3aa969932af92e3287b (diff)
downloadistreamdev-cd92ba6737c54eb2e3dcf3e617783203d27bbc0b.tar.gz
istreamdev-cd92ba6737c54eb2e3dcf3e617783203d27bbc0b.tar.bz2
added / in path for browser
-rw-r--r--js/istreamdev.js16
1 files changed, 8 insertions, 8 deletions
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) {