summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2013-09-20 14:59:17 +0200
committerMorris Jobke <morris.jobke@gmail.com>2013-10-07 11:15:58 +0200
commit4ccbace68df0150cdadaa8e680a7cb2639e8c628 (patch)
tree0b937d61d3d825a318201b2426b3f53593cf0496 /apps
parent0683372200aaf989b596e34a9864cd0c6dd980a8 (diff)
downloadnextcloud-server-4ccbace68df0150cdadaa8e680a7cb2639e8c628.tar.gz
nextcloud-server-4ccbace68df0150cdadaa8e680a7cb2639e8c628.zip
remove double uri encoding
Diffstat (limited to 'apps')
-rw-r--r--apps/files/js/files.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/files/js/files.js b/apps/files/js/files.js
index 899bc6469e5..bffb354fce6 100644
--- a/apps/files/js/files.js
+++ b/apps/files/js/files.js
@@ -367,7 +367,7 @@ $(document).ready(function() {
}
});
}
-
+
//scroll to and highlight preselected file
if (getURLParameter('scrollto')) {
FileList.scrollTo(getURLParameter('scrollto'));
@@ -645,7 +645,7 @@ function lazyLoadPreview(path, mime, ready, width, height) {
// get mime icon url
getMimeIcon(mime, function(iconURL) {
ready(iconURL); // set mimeicon URL
-
+
// now try getting a preview thumbnail URL
if ( ! width ) {
width = $('#filestable').data('preview-x');
@@ -654,9 +654,9 @@ function lazyLoadPreview(path, mime, ready, width, height) {
height = $('#filestable').data('preview-y');
}
if( $('#publicUploadButtonMock').length ) {
- var previewURL = OC.Router.generate('core_ajax_public_preview', {file: encodeURIComponent(path), x:width, y:height, t:$('#dirToken').val()});
+ var previewURL = OC.Router.generate('core_ajax_public_preview', {file: path, x:width, y:height, t:$('#dirToken').val()});
} else {
- var previewURL = OC.Router.generate('core_ajax_preview', {file: encodeURIComponent(path), x:width, y:height});
+ var previewURL = OC.Router.generate('core_ajax_preview', {file: path, x:width, y:height});
}
$.get(previewURL, function() {
previewURL = previewURL.replace('(', '%28');