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:
parent
8081489c94
commit
e655cbc2d1
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user