show pictures in folder with special characters, e.g. '+'
This commit is contained in:
parent
edecc5bca3
commit
0d1a07d4ae
|
@ -22,7 +22,7 @@ function viewImage(dir, file) {
|
||||||
if(file.indexOf('.psd')>0){//can't view those
|
if(file.indexOf('.psd')>0){//can't view those
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var location=OC.filePath('files','ajax','download.php')+'?files='+file+'&dir='+dir;
|
var location=OC.filePath('files','ajax','download.php')+'?files='+encodeURIComponent(file)+'&dir='+encodeURIComponent(dir);
|
||||||
$.fancybox({
|
$.fancybox({
|
||||||
"href": location,
|
"href": location,
|
||||||
"title": file.replace(/</, "<").replace(/>/, ">"),
|
"title": file.replace(/</, "<").replace(/>/, ">"),
|
||||||
|
|
Loading…
Reference in New Issue