*/
init: function() {
$(document.body)
- .on( 'click', '.insert-media', function( event ) {
+ .on( 'click.add-media-button', '.insert-media', function( event ) {
var elem = $( event.currentTarget ),
editor = elem.data('editor'),
options = {
// Prevents Opera from showing the outline of the button
// above the modal.
//
- // See: http://core.trac.wordpress.org/ticket/22445
+ // See: https://core.trac.wordpress.org/ticket/22445
elem.blur();
if ( elem.hasClass( 'gallery' ) ) {