From e26f0a21c62bf4649a8c7934b9caa53c1a4cc6c3 Mon Sep 17 00:00:00 2001 From: Alib Date: Thu, 18 Mar 2010 18:25:51 +0100 Subject: fix sending mp3name --- js/istreamdev.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'js/istreamdev.js') diff --git a/js/istreamdev.js b/js/istreamdev.js index 5db29e2..9eaaaca 100644 --- a/js/istreamdev.js +++ b/js/istreamdev.js @@ -587,7 +587,7 @@ function gen_browser(path,browser,name,foldertype) { name = list.trackname; } else { name = list.name; } - $("#browser" + browser).find('ul').append('
  • ' + list.number + '
    ' + name + '
    ' + list.length +'
  • '); + $("#browser" + browser).find('ul').append('
  • ' + list.number + '
    ' + name + '
    ' + list.length +'
  • '); } }); json_complete('#browser' + browser,'cube'); @@ -597,7 +597,7 @@ function gen_browser(path,browser,name,foldertype) { //Add audio player code when needed function addplayer(button) { json_start(button); - var name = $(button).find('span[class="tracktitle"]').text(); + var name = $(button).find('span[class="tracktitle"]').attr('rel'); var browser = $(button).parents('div').find('span[rel="currentbrowser"]').html(); var path = $('#browser'+browser+' div[rel="dataholder"] span[rel="path"]').text(); browser = parseInt(browser); -- cgit v1.2.3