Make WordPress Core

Opened 13 years ago

Closed 13 years ago

#27204 closed defect (bug) (fixed)

When closing the various "edit" media modals, the related views should be removed from the DOM

Reported by: gcorne Owned by: azaozz
Priority: normal Milestone: 3.9
Component: Media Version: 3.9
Severity: normal Keywords: has-patch
Cc: Focuses: javascript

Description (last modified by SergeyBiryukov)

The various edit modals (Edit Gallery, Edit Image Details, Edit Playlist, and Edit Video Playlist) when closed either by clicking update or through other means do not remove the instance of the modal and the uploader from the DOM. During a long editing session where the edit modals are opened multiple times, this results in DOM nodes for both the media modal and the uploader being created each time an edit modal is opened, which is not ideal.

Also, see comment:43:ticket:21811.

Attachments (1)

27204-01.patch (2.8 KB ) - added by gcorne 13 years ago.

Download all attachments as: .zip

Change History (3)

@gcorne
13 years ago

#1 @SergeyBiryukov
13 years ago

  • Description modified (diff)
  • Milestone Awaiting Review3.9

#2 @azaozz
13 years ago

  • Owner set to azaozz
  • Resolutionfixed
  • Status newclosed

In 27276:

When closing the various "edit" media modals, remove the related views elements from the DOM. Props gcorne, fixes #27204.

Note: See TracTickets for help on using tickets.