diff options
author | TheTroll <trolldev@gmail.com> | 2010-03-18 18:12:15 +0100 |
---|---|---|
committer | TheTroll <trolldev@gmail.com> | 2010-03-18 18:12:15 +0100 |
commit | 2983a79e15599e5d92e7083e1ba0ad5c9dfe624e (patch) | |
tree | af86b4f5a665b2f6d3fa3f5ab3fbf41e2c02282b | |
parent | 394c0c1ce48314fc6d52f3b8d29e5d4f21c3bfdc (diff) | |
parent | 088cbe838b2e9cd88bbea6ccbffe37a09f35df90 (diff) | |
download | istreamdev-2983a79e15599e5d92e7083e1ba0ad5c9dfe624e.tar.gz istreamdev-2983a79e15599e5d92e7083e1ba0ad5c9dfe624e.tar.bz2 |
Merge branch 'jquery' of projects.vdr-developer.org:istreamdev into jquery
* 'jquery' of projects.vdr-developer.org:istreamdev:
fixed mp3player
-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>');
|