From c72e1bcc2b818a021c7ff45079e3ecacff53171d Mon Sep 17 00:00:00 2001 From: Alib Date: Thu, 25 Feb 2010 14:22:49 +0100 Subject: debug js --- includes/inc_audio.php | 4 ++-- javascript/functions.js | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/includes/inc_audio.php b/includes/inc_audio.php index 04d3a12..de7b616 100755 --- a/includes/inc_audio.php +++ b/includes/inc_audio.php @@ -71,12 +71,12 @@ if ($medianame_array[0]) for ($cnt2=$cnt; $cnt2<$count; $cnt2++) { - $track[$cnt2] = $httppath."playlist/".$medianame2; + $track[$cnt2-$cnt] = $httppath."playlist/".$medianame2; } $jsarray = php2js($track); - print " \r\n"; + print " \r\n"; print " $idx{$medianame_array[$cnt]}\r\n"; print " \r\n"; diff --git a/javascript/functions.js b/javascript/functions.js index 39927e4..fd72eab 100755 --- a/javascript/functions.js +++ b/javascript/functions.js @@ -192,7 +192,7 @@ function checkform() } -function addplayer(track) { +function addplayer(path,name,track) { playercode= "