Making WordPress.org

Changeset 2915


Ignore:
Timestamp:
04/07/2016 03:35:25 PM (10 years ago)
Author:
Otto42
Message:

Theme Directory: Disable the upload button via JS when the form is submitted. Might help prevent double-clicking and submission problems.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/upload.php

    r2755 r2915  
    2929    ?>
    3030        <h4><?php _e( 'Select your zipped theme file', 'wporg-themes' ); ?></h4>
    31         <form enctype="multipart/form-data" id="upload_form" method="POST" action="">
     31        <form enctype="multipart/form-data" id="upload_form" method="POST" action="" onsubmit="jQuery('#upload_button').attr('disabled','disabled'); return true;">
    3232            <?php wp_nonce_field( 'wporg-themes-upload' ); ?>
    3333            <input type="hidden" name="action" value="upload"/>
Note: See TracChangeset for help on using the changeset viewer.