Make WordPress Core

Opened 11 years ago

Closed 11 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's profile gcorne Owned by: azaozz's profile azaozz
Milestone: 3.9 Priority: normal
Severity: normal Version: 3.9
Component: Media Keywords: has-patch
Focuses: javascript Cc:

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 11 years ago.

Download all attachments as: .zip

Change History (3)

@gcorne
11 years ago

#1 @SergeyBiryukov
11 years ago

  • Description modified (diff)
  • Milestone changed from Awaiting Review to 3.9

#2 @azaozz
11 years ago

  • Owner set to azaozz
  • Resolution set to fixed
  • Status changed from new to closed

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.