git-svn-id: http://core.svn.wordpress.org/trunk@22665 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f5e7edf2f2
commit
b222046481
|
@ -435,11 +435,19 @@ var tb_position;
|
|||
|
||||
init: function() {
|
||||
$('#wpbody').on('click', '.insert-media', function( event ) {
|
||||
var editor = $(this).data('editor'),
|
||||
var $this = $(this),
|
||||
editor = $this.data('editor'),
|
||||
workflow;
|
||||
|
||||
event.preventDefault();
|
||||
|
||||
// Remove focus from the `.insert-media` button.
|
||||
// Prevents Opera from showing the outline of the button
|
||||
// above the modal.
|
||||
//
|
||||
// See: http://core.trac.wordpress.org/ticket/22445
|
||||
$this.blur();
|
||||
|
||||
if ( ! editor )
|
||||
return;
|
||||
|
||||
|
|
Loading…
Reference in New Issue