WordPress.org

Make WordPress Core

Changeset 20833


Ignore:
Timestamp:
05/21/2012 05:58:17 PM (7 years ago)
Author:
koopersmith
Message:

Theme Customizer: Reset scroll to top when the preview url is changed. props ocean90, fixes #20713, see #19910.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/js/customize-preview.dev.js

    r20802 r20833  
    3535            this.body.on( 'click.preview', 'a', function( event ) {
    3636                event.preventDefault();
     37                self.send( 'scroll', 0 );
    3738                self.send( 'url', $(this).prop('href') );
    3839            });
Note: See TracChangeset for help on using the changeset viewer.