Making WordPress.org

Ticket #851: 851.diff

File 851.diff, 705 bytes (added by jorbin, 8 years ago)
  • wordpress.org/public_html/style/trac/trac-security.js

     
    3636
    3737        function show_box() {
    3838                // We have a potential problem here
    39                 submit.prop( 'disabled', true );
     39               
     40                // disable submit only if the box isn't already checked
     41                if ( false === jQuery('#security-question input').is(':checked') ){
     42                        submit.prop( 'disabled', true );
     43                }
     44
    4045                if ( $( '#security-question' ).length !== 0 ) {
    4146                        // We've already created the checkbox
    4247                        $( '#security-question' ).show();