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.

Built from https://develop.svn.wordpress.org/trunk@29802


git-svn-id: http://core.svn.wordpress.org/trunk@29569 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor 2014-10-01 19:08:16 +00:00
parent d2c99a5646
commit ebe813ca54
2 changed files with 2 additions and 2 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 = {

File diff suppressed because one or more lines are too long