mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
remove double uri encoding
This commit is contained in:
parent
0683372200
commit
4ccbace68d
1 changed files with 4 additions and 4 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Reference in a new issue