Opened 6 months ago
Closed 6 months ago
#22632 closed defect (bug) (fixed)
media.view.MediaFrame.restoreThickbox() not called in all cases
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 3.5 |
| Component: | Media | Version: | 3.5 |
| Severity: | normal | Keywords: | has-patch commit |
| Cc: |
Description
media.view.MediaFrame.restoreThickbox() is not called (and thus window.tbRemove() is not restored), when the new Media Manager is just closed (by clicking on the X or the gray border area). It is only called when the Media Manager is closed when something is inserted into the editor (e.g. "Insert into Post").
This breaks the closing behavior of other Thickboxes on the page, as tbRemove() is then not available.
Attachments (2)
Change History (7)
- Component changed from General to Media
- Milestone changed from Awaiting Review to 3.5
koopersmith — 6 months ago
comment:2
koopersmith — 6 months ago
- Keywords has-patch commit added
Confirmed, patch fixes the issue.
Note: The verb is "to propagate", I think.
comment:4
in reply to:
↑ 3
koopersmith — 6 months ago
Note: See
TracTickets for help on using
tickets.

Patch ensures modal events are always fired on its frame.
Easist way to test this is to open the modal, type tb_remove in a Webkit console (where it will display the source), close the modal, and type tb_remove again (or if you're feeling frisky, set them to variables and run an equality test). Did they output the same thing? No? Good.