Changeset 6791
- Timestamp:
- 02/27/2018 03:37:12 AM (7 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-two-factor
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-two-factor/js/profile-edit.js
r6757 r6791 1 1 /* global ajaxurl:true */ 2 2 jQuery( function( $ ) { 3 $( '#two-factor-active' ).on( 'click', ' [type="cancel"]', function( event ) {3 $( '#two-factor-active' ).on( 'click', '.two-factor-disable', function( event ) { 4 4 event.preventDefault(); 5 5 … … 45 45 46 46 $( 'fieldset.two-factor' ) 47 .not( '#two-factor-active' ).on( 'click', ' [type="cancel"]', function( event ) {47 .not( '#two-factor-active' ).on( 'click', '.two-factor-cancel', function( event ) { 48 48 event.preventDefault(); 49 49 … … 55 55 $( '#two-factor-start' ).show(); 56 56 } ) 57 .on( 'click', ' [type="submit"]', function( event ) {57 .on( 'click', '.two-factor-submit', function( event ) { 58 58 event.preventDefault(); 59 59 … … 118 118 119 119 var $printAgreement = $( '#print-agreement' ), 120 $backupDoneButton = $( '.two-factor-backup-codes-wrapper button[type="submit"]' );120 $backupDoneButton = $( '.two-factor-backup-codes-wrapper .two-factor-submit' ); 121 121 122 122 $printAgreement.on( 'change', function() { -
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-two-factor/wporg-two-factor.php
r6789 r6791 397 397 <fieldset class="bbp-form"> 398 398 <div> 399 <button type=" cancel" class="button button-secondaryalignright"><?php esc_html_e( 'Disable Two Factor Authentication', 'wporg' ); ?></button>399 <button type="button" class="button button-secondary two-factor-disable alignright"><?php esc_html_e( 'Disable Two Factor Authentication', 'wporg' ); ?></button> 400 400 <p class="status"><?php echo wp_kses_post( __( '<strong>Status:</strong> <span>Active</span>', 'wporg' ) ); ?></p> 401 401 </div> … … 424 424 <a href="" class="button button-secondary dashicons-before dashicons-download" id="two-factor-backup-codes-download" title="<?php esc_attr_e( 'Download Codes', 'wporg' ); ?>" download="two-factor-backup-codes.txt"><span class="screen-reader-text"><?php esc_html_e( 'Download Codes', 'wporg' ); ?></span></a> 425 425 </span> 426 <button type=" submit" class="buttonbutton-secondary" disabled="disabled"><?php esc_html_e( 'All Finished!', 'wporg' ); ?></button>426 <button type="button" class="button two-factor-submit button-secondary" disabled="disabled"><?php esc_html_e( 'All Finished!', 'wporg' ); ?></button> 427 427 </div> 428 428 </div> … … 461 461 ?> 462 462 </small> 463 <button type=" cancel" class="button button-secondaryalignleft"><?php esc_html_e( 'Cancel', 'wporg' ); ?></button>464 <button type=" submit" class="button button-primaryalignright"><?php esc_html_e( 'Enable', 'wporg' ); ?></button>463 <button type="button" class="button button-secondary two-factor-cancel alignleft"><?php esc_html_e( 'Cancel', 'wporg' ); ?></button> 464 <button type="button" class="button button-primary two-factor-submit alignright"><?php esc_html_e( 'Enable', 'wporg' ); ?></button> 465 465 </div> 466 466 </fieldset> … … 484 484 ?> 485 485 </small> 486 <button type=" cancel" class="button button-secondaryalignleft"><?php esc_html_e( 'Cancel', 'wporg' ); ?></button>487 <button type=" submit" class="button button-primaryalignright"><?php esc_html_e( 'Enable', 'wporg' ); ?></button>486 <button type="button" class="button button-secondary two-factor-cancel alignleft"><?php esc_html_e( 'Cancel', 'wporg' ); ?></button> 487 <button type="button" class="button button-primary two-factor-submit alignright"><?php esc_html_e( 'Enable', 'wporg' ); ?></button> 488 488 </div> 489 489 </fieldset> … … 523 523 } 524 524 525 .two-factor-backup-codes-wrapper [type="submit"]{525 .two-factor-backup-codes-wrapper .two-factor-submit { 526 526 vertical-align: middle; 527 527 }
Note: See TracChangeset
for help on using the changeset viewer.