Making WordPress.org

Changeset 13217


Ignore:
Timestamp:
02/16/2024 04:56:34 AM (5 months ago)
Author:
dd32
Message:

Registration: Admin: Fix the javascript for blocking. See [13216].

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/admin/ui.php

    r13216 r13217  
    9090            var url = $this.prop('href') + '&ajax=1';
    9191            if ( url.indexOf( 'block_account' ) !== -1 ) {
    92                 if ( ! $('block_reason').val() ) {
    93                     $('block_reason').val( prompt( 'Reason for blocking?' ) || '' );
     92                if ( ! $('#block_reason').val() ) {
     93                    $('#block_reason').val( prompt( 'Reason for blocking?' ) );
    9494                }
    95                 url += '&block_reason=' + encodeURIComponent( $('block_reason').val() );
     95                url += '&block_reason=' + encodeURIComponent( $('#block_reason').val() );
    9696            }
    9797
Note: See TracChangeset for help on using the changeset viewer.