]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/js/media-editor.js
WordPress 4.1
[autoinstalls/wordpress.git] / wp-includes / js / media-editor.js
index 2db4440da4ac59ca20dd2a894615728493add6d5..c4ff48426f33075a29bfcc70c85eb1de1bc2f184 100644 (file)
                 */
                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' ) ) {