WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/07/2012 11:54:03 PM (8 years ago)
Author:
nacin
Message:

Forms with the class .wp-upload-form will now have their submit button disabled until a file is selected. props kovshenin, helenyhou, lessbloat, SergeyBiryukov, tommcfarlin. fixes #20855.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/custom-header.php

    r22030 r22459  
    526526    }
    527527    ?></p>
    528     <form enctype="multipart/form-data" id="upload-form" method="post" action="<?php echo esc_attr( add_query_arg( 'step', 2 ) ) ?>">
     528    <form enctype="multipart/form-data" id="upload-form" class="wp-upload-form" method="post" action="<?php echo esc_attr( add_query_arg( 'step', 2 ) ) ?>">
    529529    <p>
    530530        <label for="upload"><?php _e( 'Choose an image from your computer:' ); ?></label><br />
Note: See TracChangeset for help on using the changeset viewer.