Opened 6 years ago
Last modified 11 months ago
#44790 new defect (bug)
Attachment Overlay does not trigger spinner for compat fields
Reported by: | hjanuschka | Owned by: | |
---|---|---|---|
Milestone: | Future Release | Priority: | normal |
Severity: | normal | Version: | |
Component: | Media | Keywords: | has-patch needs-testing needs-refresh close |
Focuses: | ui, javascript, administration | Cc: |
Description
we are using ACF and some other custom fields in the attachment library, when we change values of those "compat" fields - the spinner/loader does not show up, which leads to the situation that the editor/user, may think everything is saved, and clicks assign/close to the overlay, and behind the overlay he/she may click on publish, which in some situations cancels the XHR requests and leads to data loss.
i have prepared a patch, not 100% sure if it is in the right place, let me know if you'd want me to adopt/change anything.
Attachments (2)
Change History (8)
#3
@
5 years ago
- Keywords needs-testing added
- Milestone changed from Awaiting Review to 5.3
Hi @hjanuschka. Thanks for the report and for providing a patch. I'm going to move to the 5.3 milestone for testing/consideration.
This ticket was mentioned in Slack in #core by david.baumwald. View the logs.
5 years ago
#5
@
5 years ago
- Keywords needs-refresh added
- Milestone changed from 5.3 to Future Release
The latest patch fails against trunk, so it needs a refresh. Also, this would need testing and review. With Beta 1 of version 5.3 only a few days away, this is being moved to Future Release
. If this ticket can be resolved in time for 5.3, feel free to re-milestone.
for whatever reason, the
this.controller.trigger( 'attachment:compat:ready'
andthis.controller.trigger( 'attachment:compat:waiting'
did not reach thethis.listenTo( this.controller, 'attachment:compat:waiting attachment:compat:ready', this.updateSave );
those i change dit to the
.on()
variation, i found somwhere else in the js codebase