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

WordPress Trac noreply at wordpress.org
Wed Nov 14 23:09:16 UTC 2012


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

Comment (by SergeyBiryukov):

 Turned out the screen also has the Plupload form (invisible if browser
 uploader is displayed):
 {{{
 <input type="file" multiple="multiple" accept="" style="font-size: 999px;
 position: absolute; width: 100%; height: 100%;"
 id="p17c0hrb00la712kf81o1t0svoi0_html5">
 }}}

 [attachment:20855.10.diff] adds `filter(':visible')`. The reason for it to
 be inside the function is to make sure it works when the Plupload form is
 initially displayed.

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


More information about the wp-trac mailing list