diff options
author | Alib <aliboba@free.fr> | 2010-03-18 18:10:21 +0100 |
---|---|---|
committer | Alib <aliboba@free.fr> | 2010-03-18 18:10:21 +0100 |
commit | 088cbe838b2e9cd88bbea6ccbffe37a09f35df90 (patch) | |
tree | 274a542bd5435bf1f5c3af378c549179029ca337 /js | |
parent | 19f7bf5bbe473eb76b3089702986b92eb2235003 (diff) | |
download | istreamdev-088cbe838b2e9cd88bbea6ccbffe37a09f35df90.tar.gz istreamdev-088cbe838b2e9cd88bbea6ccbffe37a09f35df90.tar.bz2 |
fixed mp3player
Diffstat (limited to 'js')
-rw-r--r-- | js/istreamdev.js | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/js/istreamdev.js b/js/istreamdev.js index 9998f53..5ae5f58 100644 --- a/js/istreamdev.js +++ b/js/istreamdev.js @@ -506,15 +506,6 @@ $('ul[rel="filelist"] li[class="arrow"] a').tap(function(event) { {
gen_streamvid(name,path);
}
- else if ( type == "rec" )
- {
- gen_streamrec(name,path);
- }
- else if ( type == "audio" )
- {
- var track = $(this).find('span[class="number"]').text();
- addplayer(path,name,track,(browser-1));
- }
return false;
});
@@ -603,8 +594,10 @@ function gen_browser(path,browser,name,foldertype) { function addplayer(button) {
json_start(button);
var name = $(button).find('span[class="tracktitle"]').text();
- var path = $(button).parents('div').find('span[rel="path"]').text();
- var browser = $(button).parents('div').find('span[rel="currentbrowser"]').text();
+ var browser = $(button).parents('div').find('span[rel="currentbrowser"]').html();
+ alert(browser);
+ var path = $('#browser'+browser+' div[rel="dataholder"] span[rel="path"]').text();
+ alert(path);
browser = parseInt(browser);
$('#browser'+browser+' #div_player').remove();
$('#browser'+browser).append('<div style="position:absolute; left:0; top:0" name="div_player" id="div_player"></div>');
|