mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-18 03:00:56 +01:00
This commit is contained in:
@@ -2,7 +2,8 @@
|
||||
## mm/dd/2019
|
||||
|
||||
1. [](#bugfix)
|
||||
* Fixed regression with files in admin not allowing types other than images
|
||||
* Fixed regression with files in admin not allowing types other than images [#1737](https://github.com/getgrav/grav-plugin-admin/issues/1737)
|
||||
* Fixed preview link for non-images files in Pagemedia [#1727](https://github.com/getgrav/grav-plugin-admin/issues/1727)
|
||||
|
||||
# v1.9.8
|
||||
## 08/11/2019
|
||||
|
||||
@@ -139,7 +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().extras.original;
|
||||
let original = this.dropzone.files.filter((file) => encodeURIComponent(file.name) === filename).shift();
|
||||
|
||||
original = original.extras.original || encodeURIComponent(original.name);
|
||||
|
||||
target.attr('href', `${URL}/${original}`);
|
||||
});
|
||||
|
||||
28
themes/grav/js/admin.min.js
vendored
28
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