Commit 2c1d110d authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Revert "web intf: fix uri decoding when browsing."

This reverts commit fb9bbdc9.
parent bd058b2f
...@@ -172,11 +172,11 @@ function browse(dir){ ...@@ -172,11 +172,11 @@ function browse(dir){
$('#browse_elements').empty(); $('#browse_elements').empty();
$('element',data).each(function(){ $('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){ 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('uri'),$(this).attr('name').substr(-3))); $('#browse_elements').append(createElementLi($(this).attr('name'),$(this).attr('type'),$(this).attr('path'),$(this).attr('name').substr(-3)));
} }
}); });
$('[opendir]').dblclick(function(){ $('[opendir]').dblclick(function(){
browse(decodeURIComponent($(this).attr('opendir')).substring(7)); browse($(this).attr('opendir'));
}); });
$('[openfile]').dblclick(function(){ $('[openfile]').dblclick(function(){
switch(tgt){ switch(tgt){
...@@ -195,7 +195,7 @@ function browse(dir){ ...@@ -195,7 +195,7 @@ function browse(dir){
case '#mobile': case '#mobile':
break; break;
default: default:
sendCommand('command=in_play&input='+encodeURIComponent($(this).attr('openfile'))); sendCommand('command=in_play&input=file://'+encodeURIComponent($(this).attr('openfile')));
break; break;
} }
$('#window_browse').dialog('close'); $('#window_browse').dialog('close');
...@@ -212,7 +212,7 @@ function browse(dir){ ...@@ -212,7 +212,7 @@ function browse(dir){
$('[openfile]').click(function(){ $('[openfile]').click(function(){
switch(tgt){ switch(tgt){
case '#mobile': case '#mobile':
sendCommand('command=in_play&input='+encodeURIComponent($(this).attr('openfile')),"window.location='mobile.html'"); sendCommand('command=in_play&input=file://'+encodeURIComponent($(this).attr('openfile')),"window.location='mobile.html'");
break; break;
default: default:
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment