Make WordPress Core

Changeset 29802


Ignore:
Timestamp:
10/01/2014 07:07:14 PM (10 years ago)
Author:
wonderboymusic
Message:

Add a namespace to the click handler registration for .insert-media in media-editor.js: click.add-media-button.

This is a stopgap to allow devs to override the default behavior.

Fixes #23096.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/media-editor.js

    r29788 r29802  
    10781078        init: function() {
    10791079            $(document.body)
    1080                 .on( 'click', '.insert-media', function( event ) {
     1080                .on( 'click.add-media-button', '.insert-media', function( event ) {
    10811081                    var elem = $( event.currentTarget ),
    10821082                        editor = elem.data('editor'),
Note: See TracChangeset for help on using the changeset viewer.