mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-02 19:36:08 +01:00
Fixed issue preventing Drag & Drop of media files while in Expert Mode (fixes #1927)
This commit is contained in:
@@ -7,6 +7,7 @@
|
|||||||
* Moved preset CSS compile to earlier in the process to ensure compilation happens in time.
|
* Moved preset CSS compile to earlier in the process to ensure compilation happens in time.
|
||||||
* Prevent Save actions from Flex Objects to trigger the unsaved unload notice [#2125](https://github.com/getgrav/grav-plugin-admin/issues/2125)
|
* Prevent Save actions from Flex Objects to trigger the unsaved unload notice [#2125](https://github.com/getgrav/grav-plugin-admin/issues/2125)
|
||||||
* Fixed audit vulnerabilities in module dependencies and house cleanup [#2096](https://github.com/getgrav/grav-plugin-admin/issues/2096)
|
* Fixed audit vulnerabilities in module dependencies and house cleanup [#2096](https://github.com/getgrav/grav-plugin-admin/issues/2096)
|
||||||
|
* Fixed issue preventing Drag & Drop of media files while in Expert Mode [#1927](https://github.com/getgrav/grav-plugin-admin/issues/1927)
|
||||||
|
|
||||||
# v1.10.12
|
# v1.10.12
|
||||||
## 04/15/2021
|
## 04/15/2021
|
||||||
|
|||||||
@@ -108,7 +108,9 @@ export default class PageMedia extends FilesField {
|
|||||||
|
|
||||||
onDropzoneComplete(file) {
|
onDropzoneComplete(file) {
|
||||||
super.onDropzoneComplete(file);
|
super.onDropzoneComplete(file);
|
||||||
this.sortable.options.onSort();
|
if (this.sortable) {
|
||||||
|
this.sortable.options.onSort();
|
||||||
|
}
|
||||||
|
|
||||||
// accepted
|
// accepted
|
||||||
$('.dz-preview').prop('draggable', 'true');
|
$('.dz-preview').prop('draggable', 'true');
|
||||||
@@ -116,7 +118,9 @@ export default class PageMedia extends FilesField {
|
|||||||
|
|
||||||
onDropzoneRemovedFile(file, ...extra) {
|
onDropzoneRemovedFile(file, ...extra) {
|
||||||
super.onDropzoneRemovedFile(file, ...extra);
|
super.onDropzoneRemovedFile(file, ...extra);
|
||||||
this.sortable.options.onSort();
|
if (this.sortable) {
|
||||||
|
this.sortable.options.onSort();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
attachDragDrop() {
|
attachDragDrop() {
|
||||||
|
|||||||
15929
themes/grav/js/admin.min.js
vendored
15929
themes/grav/js/admin.min.js
vendored
File diff suppressed because one or more lines are too long
95721
themes/grav/js/vendor.min.js
vendored
95721
themes/grav/js/vendor.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user