mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-18 03:00:56 +01:00
Fix #1051 Missing preview in page media for SVG images
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
|
||||
1. [](#bugfix)
|
||||
* Fix for regression in h3 style in the Spacer field [#267](https://github.com/getgrav/grav-plugin-admin/issues/267)
|
||||
* Fix missing preview in page media for SVG images [#1051](https://github.com/getgrav/grav-plugin-admin/issues/1051)
|
||||
|
||||
# v1.3.1
|
||||
## 03/31/2017
|
||||
|
||||
@@ -56,7 +56,7 @@ export default class PageMedia extends FilesField {
|
||||
this.dropzone.files.push(mock);
|
||||
this.dropzone.options.addedfile.call(this.dropzone, mock);
|
||||
|
||||
if (name.match(/\.(jpg|jpeg|png|gif)$/i)) {
|
||||
if (name.match(/\.(jpg|jpeg|png|gif|svg)$/i)) {
|
||||
this.dropzone.options.thumbnail.call(this.dropzone, mock, data.url);
|
||||
}
|
||||
});
|
||||
|
||||
14
themes/grav/js/admin.min.js
vendored
14
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