diff options
author | Alib <aliboba@free.fr> | 2010-03-18 18:25:51 +0100 |
---|---|---|
committer | Alib <aliboba@free.fr> | 2010-03-18 18:25:51 +0100 |
commit | e26f0a21c62bf4649a8c7934b9caa53c1a4cc6c3 (patch) | |
tree | 9c67211c9524e1ba935bbcfca0803251bbebe0dc /js/istreamdev.js | |
parent | 127839c6a77457bccb174efda16dc882aff8907c (diff) | |
download | istreamdev-e26f0a21c62bf4649a8c7934b9caa53c1a4cc6c3.tar.gz istreamdev-e26f0a21c62bf4649a8c7934b9caa53c1a4cc6c3.tar.bz2 |
fix sending mp3name
Diffstat (limited to 'js/istreamdev.js')
-rw-r--r-- | js/istreamdev.js | 4 |
1 files changed, 2 insertions, 2 deletions
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('<li class="track"><a href="javascript:document.player.Play();" onclick="addplayer(this);" rel="audio"><div class="numberbox"><span class="number">' + list.number + '</span></div><span class="tracktitle">' + name + '</span><div class="timebox"><span class="time">' + list.length +'</span></div></a></li>');
+ $("#browser" + browser).find('ul').append('<li class="track"><a href="javascript:document.player.Play();" onclick="addplayer(this);" rel="audio"><div class="numberbox"><span class="number">' + list.number + '</span></div><span class="tracktitle" rel="'+ list.name + '">' + name + '</span><div class="timebox"><span class="time">' + list.length +'</span></div></a></li>');
}
});
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);
|