w/skins/MinervaNeue/resources/skins.minerva.editor/init.js
/**
	 * Initialize the edit button so that it launches a login call-to-action when clicked.
	 * @method
	 * @ignore
	 */
Initialize the edit button so that it launches a login call-to-action when clicked.
@method
@ignore
Initialize the edit button so that it launches a login call - to - action when clicked . @method @ignore
function initCta() {
		if ( isEditable ) {
			updateEditPageButton( true );
			makeCta( $caEdit, 0 );
			$( '.edit-page' ).each( function () {
				var $a = $( this ),
					section = 0;
				if ( $( this ).data( 'section' ) !== undefined ) {
					section = $( this ).data( 'section' );
				}
				makeCta( $a, section );
			} );
		} else {
			updateEditPageButton( false );
			showSorryToast( mw.msg( 'mobile-frontend-editor-disabled' ) );
		}
	}
function initCta ( ) { if ( isEditable ) { updateEditPageButton ( true ) ; makeCta ( $caEdit , 0 ) ; $ ( '.edit-page' ) . each ( function ( ) { var $a = $ ( this ) , section = 0 ; if ( $ ( this ) . data ( 'section' ) !== undefined ) { section = $ ( this ) . data ( 'section' ) ; } makeCta ( $a , section ) ; } ) ; } else { updateEditPageButton ( false ) ; showSorryToast ( mw . msg ( 'mobile-frontend-editor-disabled' ) ) ; } }
Initialize the edit button so that it launches a login call-to-action when clicked.
Initialize the edit button so that it launches a login call - to - action when clicked .
// Initialize edit button links (to show Cta) only, if page is editable, // otherwise show an error toast // Init lead section edit button // Init all edit links (including lead section, if anonymous editing is enabled)