/* global jpConnect */ const connectButtons = document.querySelectorAll( '.jp-connect-button, #jp-connect-button--alt' ); connectButtons.forEach( function ( connectButton ) { connectButton.addEventListener( 'click', function ( event ) { event.preventDefault(); startConnectionFlow( connectButton ); } ); } ); function startConnectionFlow( connectButton ) { connectButton.classList.add( 'button-disabled' ); const searchParams = new URLSearchParams( connectButton.getAttribute( 'href' ).split( '?' )[ 1 ] ); window.location = searchParams && searchParams.get( 'from' ) ? jpConnect.connectUrl .split( '?page=jetpack' ) .join( '?page=jetpack&from=' + searchParams.get( 'from' ) ) : jpConnect.connectUrl; }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
blocks | Folder | 0755 |
|
|
build | Folder | 0755 |
|
|
fonts | Folder | 0755 |
|
|
genericons | Folder | 0755 |
|
|
lib | Folder | 0755 |
|
|
social-logos | Folder | 0755 |
|
|
accessible-focus.js | File | 620 B | 0644 |
|
blogging-prompts.php | File | 8.49 KB | 0644 |
|
class.jetpack-provision.php | File | 9.65 KB | 0644 |
|
connect-button.js | File | 737 B | 0644 |
|
crowdsignal-shortcode.js | File | 660 B | 0644 |
|
crowdsignal-survey.js | File | 277 B | 0644 |
|
facebook-embed.js | File | 1 KB | 0644 |
|
gallery-settings.js | File | 1 KB | 0644 |
|
genericons.php | File | 565 B | 0644 |
|
jetpack-admin.js | File | 1.56 KB | 0644 |
|
jetpack-connection-banner.js | File | 1.17 KB | 0644 |
|
jetpack-deactivate-dialog.js | File | 2.8 KB | 0644 |
|
jetpack-modules.js | File | 2.42 KB | 0644 |
|
jetpack-modules.models.js | File | 2.08 KB | 0644 |
|
jetpack-modules.views.js | File | 1.69 KB | 0644 |
|
jetpack-recommendations-banner.js | File | 1.79 KB | 0644 |
|
jetpack-server-sandbox.php | File | 1.36 KB | 0644 |
|
polldaddy-shortcode.js | File | 2.66 KB | 0644 |
|
social-logos.php | File | 1014 B | 0644 |
|
twitter-timeline.js | File | 351 B | 0644 |
|