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.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/jetpack/_inc/jetpack-connection-banner.js b/plugins/jetpack/_inc/jetpack-connection-banner.js
index d846870a..f3f5028d 100644
--- a/plugins/jetpack/_inc/jetpack-connection-banner.js
+++ b/plugins/jetpack/_inc/jetpack-connection-banner.js
@@ -8,8 +8,15 @@
fullScreenDismiss = $( '.jp-connect-full__dismiss, .jp-connect-full__dismiss-paragraph' ),
wpWelcomeNotice = $( '#welcome-panel' ),
connectionBanner = $( '#message' ),
+ placeholder = $( '.jp-loading-placeholder' ),
connectionBannerDismiss = $( '.connection-banner-dismiss' );
+ if ( placeholder && placeholder.length ) {
+ fullScreenContainer.show();
+ var shell = $( '<div class="jp-lower"></div>' ).html( fullScreenContainer );
+ placeholder.hide().after( shell );
+ }
+
// Move the banner below the WP Welcome notice on the dashboard
$( window ).on( 'load', function() {
wpWelcomeNotice.insertBefore( connectionBanner );