[wp-trac] [WordPress Trac] #13313: WP import: "Upload file and import" should be deactivated until a filename is entered

WordPress Trac wp-trac at lists.automattic.com
Thu Jul 8 21:21:47 UTC 2010


#13313: WP import: "Upload file and import" should be deactivated until a filename
is entered
--------------------------+-------------------------------------------------
 Reporter:  lloydbudd     |       Owner:                          
     Type:  defect (bug)  |      Status:  new                     
 Priority:  low           |   Milestone:  Future Release          
Component:  Import        |     Version:  3.0                     
 Severity:  minor         |    Keywords:  ux-feedback, ui-feedback
--------------------------+-------------------------------------------------

Comment(by dangayle):

 The "disabled" HTML form attribute exists exactly for this, and should be
 a trivial bit of js to add. The disabled attribute is supported in all
 major browsers.

 [http://www.w3.org/TR/html401/interact/forms.html#h-17.12 W3C HTML 4.01 -
 17.12 Disabled and read-only controls]
   In contexts where user input is either undesirable or irrelevant, it is
 important to be able to disable a control or render it read-only. For
 example, one may want to disable a form's submit button until the user has
 entered some required data.

   Note. The only way to modify dynamically the value of the disabled
 attribute is through a script.

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


More information about the wp-trac mailing list