mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Theme Customizer: Reset scroll to top when the preview url is changed. props ocean90, fixes #20713, see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20833 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -34,6 +34,7 @@
|
||||
this.body = $( document.body );
|
||||
this.body.on( 'click.preview', 'a', function( event ) {
|
||||
event.preventDefault();
|
||||
self.send( 'scroll', 0 );
|
||||
self.send( 'url', $(this).prop('href') );
|
||||
});
|
||||
|
||||
@@ -83,4 +84,4 @@
|
||||
});
|
||||
});
|
||||
|
||||
})( wp, jQuery );
|
||||
})( wp, jQuery );
|
||||
|
||||
Reference in New Issue
Block a user