Make WordPress Core

Ticket #27139: 27139.diff

File 27139.diff, 510 bytes (added by hereswhatidid, 11 years ago)

Trigger blur on any inputs currently in focus when sorting is initiated.

  • wp-includes/js/media-views.js

     
    43184318
    43194319                                // Record the initial `index` of the dragged model.
    43204320                                start: function( event, ui ) {
     4321                                        // trigger the blur on any caption inputs currently in focus
     4322                                        $( 'input.describe:focus').trigger( 'blur' );
    43214323                                        ui.item.data('sortableIndexStart', ui.item.index());
    43224324                                },
    43234325