summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jetpack/_inc/jetpack-connection-banner.js')
-rw-r--r--plugins/jetpack/_inc/jetpack-connection-banner.js10
1 files changed, 1 insertions, 9 deletions
diff --git a/plugins/jetpack/_inc/jetpack-connection-banner.js b/plugins/jetpack/_inc/jetpack-connection-banner.js
index cdafca73..fc5b7705 100644
--- a/plugins/jetpack/_inc/jetpack-connection-banner.js
+++ b/plugins/jetpack/_inc/jetpack-connection-banner.js
@@ -5,7 +5,7 @@
contentContainer = $( '.jp-wpcom-connect__content-container' ),
nextFeatureButtons = $( '.jp-banner__button-container .next-feature' ),
fullScreenContainer = $( '.jp-connect-full__container' ),
- fullScreenDismiss = $( '.jp-connect-full__dismiss' ),
+ fullScreenDismiss = $( '.jp-connect-full__dismiss, .jp-connect-full__dismiss-paragraph' ),
wpWelcomeNotice = $( '#welcome-panel' ),
connectionBanner = $( '#message' ),
connectionBannerDismiss = $( '.connection-banner-dismiss' );
@@ -71,9 +71,6 @@
*/
fullScreenDismiss.on( 'click', function() {
$( fullScreenContainer ).hide();
-
- // Re-enable scrolling
- $( 'body' ).css( 'overflow', 'visible' );
} );
$( document ).keyup( function( e ) {
@@ -81,9 +78,4 @@
$( fullScreenDismiss ).click();
}
} );
-
- // Prevent scrolling if full-page prompt is showing
- if ( $( fullScreenContainer ).is( ':visible' ) ) {
- $( 'body' ).css( 'overflow', 'hidden' );
- }
} )( jQuery );