Make WordPress Core

Changeset 22518


Ignore:
Timestamp:
11/10/2012 04:39:44 AM (13 years ago)
Author:
nacin
Message:

Use event delegation for Add Media, allowing the event to bubble up to #wpbody. Keeps the Add Media button functional on a second use of QuickPress. fixes #22255.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/js/media-upload.js

    r22495 r22518  
    154154
    155155        init: function() {
    156             $('.insert-media').on( 'click', function( event ) {
     156            $('#wpbody').on('click', '.insert-media', function( event ) {
    157157                var editor = $(this).data('editor'),
    158158                    workflow;
Note: See TracChangeset for help on using the changeset viewer.