From 088cbe838b2e9cd88bbea6ccbffe37a09f35df90 Mon Sep 17 00:00:00 2001 From: Alib Date: Thu, 18 Mar 2010 18:10:21 +0100 Subject: fixed mp3player --- js/istreamdev.js | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) (limited to 'js') 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('
'); -- cgit v1.2.3