git-svn-id: https://develop.svn.wordpress.org/trunk@22665 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
de15d6636a
commit
395fd933c9
@ -435,11 +435,19 @@ var tb_position;
|
|||||||
|
|
||||||
init: function() {
|
init: function() {
|
||||||
$('#wpbody').on('click', '.insert-media', function( event ) {
|
$('#wpbody').on('click', '.insert-media', function( event ) {
|
||||||
var editor = $(this).data('editor'),
|
var $this = $(this),
|
||||||
|
editor = $this.data('editor'),
|
||||||
workflow;
|
workflow;
|
||||||
|
|
||||||
event.preventDefault();
|
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 )
|
if ( ! editor )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user