Opened 8 years ago
Closed 23 months ago
#44790 closed defect (bug) (worksforme)
Attachment Overlay does not trigger spinner for compat fields
| Reported by: | hjanuschka | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Media | Version: | |
| Severity: | normal | Keywords: | has-patch needs-testing needs-refresh close |
| Cc: | Focuses: | ui, javascript, administration |
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 (9)
#3
@
8 years ago
- Keywords needs-testing added
- Milestone Awaiting Review → 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.
7 years ago
#5
@
7 years ago
- Keywords needs-refresh added
- Milestone 5.3 → 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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