Fix getting drop target when dragging from file manager#28692
Conversation
| } | ||
|
|
||
| var dropTarget = $(e.originalEvent.target); | ||
| var dropTarget = $(e.originalEvent.target || e.originalEvent.delegatedEvent.target); |
There was a problem hiding this comment.
I guess the e.original.target won't be needed any longer.
The change in the library that affects this is
core/apps/files/js/jquery.fileupload.js
Line 1137 in 639dafd
The actual event isn't set as the originalEvent but as the delegateEvent.
Unless we want compatibility between the library versions, which I don't think it's needed, we can remove the old code.
There was a problem hiding this comment.
Thanks for looking deeper. To be honest I was just too lazy to investigate this detail.
77a0a40 to
3e9b68a
Compare
|
|
|
|
|
Wrong link? Backport doesn't seem related. |
|
oh lala, major browser tab fail. I'll fix |
Folder upload seems to be be supported only in chrome. It's very likely a browser limitation. |
|
Using chrome I mean. |
|
I had a look at this and it's more complex, to be fixed separately. This is not related to the jquery.fileupload library update not recent changes. It is likely present since we moved to Webdav for file operations. |
3e9b68a to
bab8bc8
Compare
|
@SergioBertolinSG please retest |
|
Related to jquery.fileupload upgrade, the event has moved
When uploading multiple files into a target folder, sometimes the progress bar does not disappear.
bab8bc8 to
8a69278
Compare
|
tests fixed |
|
The estimation of the upload bar is very general (few seconds, minutes, etc) has it changed in this PR? |
|
I guess it didn't so it works fine. |
|
@SergioBertolinSG the estimate was never good... |
|
stable10: #28882 |
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Description
Possibly related to jquery.fileupload upgrade, now
e.originalEvent.target might be null.
Related Issue
Fixes #28689.
Motivation and Context
See ticket
How Has This Been Tested?
Manual testing like in the ticket.
Screenshots (if appropriate):
Types of changes
Checklist: