From 0288e7e23ea7aea31727780b6cfebb0baab87abc Mon Sep 17 00:00:00 2001 From: TheTroll Date: Wed, 17 Mar 2010 19:06:13 +0100 Subject: Fixed subdirs browing and rec info --- js/istreamdev.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'js') diff --git a/js/istreamdev.js b/js/istreamdev.js index ae823d1..196d9eb 100644 --- a/js/istreamdev.js +++ b/js/istreamdev.js @@ -309,7 +309,7 @@ function gen_streamchannel(channame,channumber) { } function gen_streamrec(folder,path) { - var dataString = "action=getRecInfo&rec=" + encodeURIComponent(path) + encodeURIComponent(folder); + var dataString = "action=getRecInfo&rec=" + encodeURIComponent(path) + "/" + encodeURIComponent(folder); //Json call to get rec info $.getJSON("bin/backend.php", dataString, @@ -327,7 +327,7 @@ function gen_streamrec(folder,path) { } function gen_streamvid(filename,path) { - var dataString = "action=getVidInfo&file=" + encodeURIComponent(path) + encodeURIComponent(filename); + var dataString = "action=getVidInfo&file=" + encodeURIComponent(path) + "/" + encodeURIComponent(filename); //Json call to get rec info $.getJSON("bin/backend.php", dataString, @@ -484,7 +484,7 @@ $('ul[rel="filelist"] li[class="arrow"] a').tap(function(event) { browser++; if ( type == "folder" ) { - newpath=path+name; + newpath=path+"/"+name; gen_browser(newpath,browser,name,foldertype); } else if ( type == "rec" ) @@ -831,4 +831,4 @@ function epg_selectchan() { alert(selectedchan); } -// [/EPG SECTION] \ No newline at end of file +// [/EPG SECTION] -- cgit v1.2.3