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: http://core.svn.wordpress.org/trunk@22518 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b404fbdb85
commit
7ba61388a4
|
@ -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