summaryrefslogtreecommitdiff
path: root/js/istreamdev.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/istreamdev.js')
-rw-r--r--js/istreamdev.js4
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);