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.


git-svn-id: https://develop.svn.wordpress.org/trunk@29802 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor 2014-10-01 19:07:14 +00:00
parent 4daab443c0
commit 0cae966012
1 changed files with 1 additions and 1 deletions

View File

@ -1077,7 +1077,7 @@
*/
init: function() {
$(document.body)
.on( 'click', '.insert-media', function( event ) {
.on( 'click.add-media-button', '.insert-media', function( event ) {
var elem = $( event.currentTarget ),
editor = elem.data('editor'),
options = {