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.

git-svn-id: https://develop.svn.wordpress.org/trunk@22518 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2012-11-10 04:39:44 +00:00
parent 8081489c94
commit e655cbc2d1
1 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,7 @@ var tb_position;
},
init: function() {
$('.insert-media').on( 'click', function( event ) {
$('#wpbody').on('click', '.insert-media', function( event ) {
var editor = $(this).data('editor'),
workflow;