$('#browse_elements').empty();
$('element',data).each(function(){
if($(this).attr('type')=='dir' || $.inArray($(this).attr('name').substr(-3),video_types)!=-1 || $.inArray($(this).attr('name').substr(-3),audio_types)!=-1){
- $('#browse_elements').append(createElementLi($(this).attr('name'),$(this).attr('type'),$(this).attr('path'),$(this).attr('name').substr(-3)));
+ $('#browse_elements').append(createElementLi($(this).attr('name'),$(this).attr('type'),$(this).attr('uri'),$(this).attr('name').substr(-3)));
}
});
$('[opendir]').dblclick(function(){
- browse($(this).attr('opendir'));
+ browse(decodeURIComponent($(this).attr('opendir')).substring(7));
});
$('[openfile]').dblclick(function(){
switch(tgt){
case '#mobile':
break;
default:
- sendCommand('command=in_play&input=file://'+encodeURIComponent($(this).attr('openfile')));
+ sendCommand('command=in_play&input='+encodeURIComponent($(this).attr('openfile')));
break;
}
$('#window_browse').dialog('close');
$('[openfile]').click(function(){
switch(tgt){
case '#mobile':
- sendCommand('command=in_play&input=file://'+encodeURIComponent($(this).attr('openfile')),"window.location='mobile.html'");
+ sendCommand('command=in_play&input='+encodeURIComponent($(this).attr('openfile')),"window.location='mobile.html'");
break;
default:
break;