diff options
author | TheTroll <trolldev@gmail.com> | 2010-03-18 18:28:41 +0100 |
---|---|---|
committer | TheTroll <trolldev@gmail.com> | 2010-03-18 18:28:41 +0100 |
commit | 02ceecb7622de96dcf42abab2d4a7097091017f0 (patch) | |
tree | 7eeeb5b44c18bc6580c3d72a3f9b6d1d9c74746d | |
parent | ee8dd44d5f871555332d74ddbb5ea3d112794fbe (diff) | |
parent | e26f0a21c62bf4649a8c7934b9caa53c1a4cc6c3 (diff) | |
download | istreamdev-02ceecb7622de96dcf42abab2d4a7097091017f0.tar.gz istreamdev-02ceecb7622de96dcf42abab2d4a7097091017f0.tar.bz2 |
Merge branch 'jquery' of projects.vdr-developer.org:istreamdev into jquery
* 'jquery' of projects.vdr-developer.org:istreamdev:
fix sending mp3name
-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);
|