Make WordPress Core

Changeset 30777


Ignore:
Timestamp:
12/07/2014 08:10:56 PM (10 years ago)
Author:
wonderboymusic
Message:

When using the spacebar to select something in "bulk select" mode, don't scroll the page.

Props avryl.
Fixes #30622.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/media-views.js

    r30686 r30777  
    52445244            }
    52455245
     5246            event.preventDefault();
     5247
    52465248            // In the grid view, bubble up an edit:attachment event to the controller.
    52475249            if ( this.controller.isModeActive( 'grid' ) ) {
     
    52495251                    // Pass the current target to restore focus when closing
    52505252                    this.controller.trigger( 'edit:attachment', this.model, event.currentTarget );
    5251 
    5252                     // Don't scroll the view and don't attempt to submit anything.
    5253                     event.stopPropagation();
    52545253                    return;
    52555254                }
     
    52715270
    52725271            this.controller.trigger( 'selection:toggle' );
    5273 
    5274             // Don't scroll the view and don't attempt to submit anything.
    5275             event.stopPropagation();
    52765272        },
    52775273        /**
Note: See TracChangeset for help on using the changeset viewer.