mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-05 04:46:03 +01:00
Fixed URI encode for the preview of images names
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
1. [](#bugfix)
|
||||
* Disabled the EXIF library for Dropzone for fixing the orientation as it was getting applied twice [#1923](https://github.com/getgrav/grav-plugin-admin/issues/1923)
|
||||
* Forked Dropzone fo fix issue with Resize + Exif orientation [#1923](https://github.com/getgrav/grav-plugin-admin/issues/1923)
|
||||
* Fixed URI encode for the preview of images names
|
||||
|
||||
# v1.10.0-rc.14
|
||||
## 07/09/2020
|
||||
|
||||
@@ -139,9 +139,9 @@ export default class PageMedia extends FilesField {
|
||||
let file = target.parent('.dz-preview').find('.dz-filename');
|
||||
let filename = encodeURI(file.text());
|
||||
let URL = target.closest('[data-media-path]').data('media-path');
|
||||
let original = this.dropzone.files.filter((file) => encodeURIComponent(file.name) === filename).shift();
|
||||
let original = this.dropzone.files.filter((file) => encodeURI(file.name) === filename).shift();
|
||||
|
||||
original = original && ((original.extras && original.extras.original) || encodeURIComponent(original.name));
|
||||
original = original && ((original.extras && original.extras.original) || encodeURI(original.name));
|
||||
|
||||
target.attr('href', `${URL}/${original}`);
|
||||
});
|
||||
|
||||
2
themes/grav/js/admin.min.js
vendored
2
themes/grav/js/admin.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user