Fixed issue preventing Drag & Drop of media files while in Expert Mode (fixes #1927)

This commit is contained in:
Djamil Legato
2021-04-20 12:18:58 -07:00
parent 9ab6b2a797
commit d02f3a12e2
4 changed files with 6258 additions and 105401 deletions

View File

@@ -7,6 +7,7 @@
* 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)
* 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
## 04/15/2021

View File

@@ -108,7 +108,9 @@ export default class PageMedia extends FilesField {
onDropzoneComplete(file) {
super.onDropzoneComplete(file);
this.sortable.options.onSort();
if (this.sortable) {
this.sortable.options.onSort();
}
// accepted
$('.dz-preview').prop('draggable', 'true');
@@ -116,7 +118,9 @@ export default class PageMedia extends FilesField {
onDropzoneRemovedFile(file, ...extra) {
super.onDropzoneRemovedFile(file, ...extra);
this.sortable.options.onSort();
if (this.sortable) {
this.sortable.options.onSort();
}
}
attachDragDrop() {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long