[wp-trac] [WordPress Trac] #20855: Don't show Upload button until file has been selected.

WordPress Trac wp-trac at lists.automattic.com
Mon Sep 17 20:51:49 UTC 2012


#20855: Don't show Upload button until file has been selected.
----------------------------+------------------------
 Reporter:  jane            |       Owner:  kovshenin
     Type:  task (blessed)  |      Status:  accepted
 Priority:  normal          |   Milestone:  3.5
Component:  UI              |     Version:  3.4
 Severity:  minor           |  Resolution:
 Keywords:  has-patch       |
----------------------------+------------------------

Comment (by nacin):

 .prop() needs to be used (jQuery 1.6+), rather than .attr(). Something
 like this would work:
 {{{
 $( '#upload-form #submit' ).prop('disabled', '' === $('#upload').val() );
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20855#comment:11>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list