[wp-trac] [WordPress Trac] #15204: JavaScript Validation should trim values and set focus on invalid field

WordPress Trac wp-trac at lists.automattic.com
Sun Oct 24 15:53:49 UTC 2010


#15204: JavaScript Validation should trim values and set focus on invalid field
--------------------------+-------------------------------------------------
 Reporter:  batmoo        |       Owner:                 
     Type:  defect (bug)  |      Status:  assigned       
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Validation    |     Version:  3.1            
 Severity:  normal        |    Keywords:  has-patch      
--------------------------+-------------------------------------------------
Changes (by batmoo):

  * keywords:  => has-patch
  * owner:  batmoo =>
  * status:  new => assigned


Comment:

 Patch removes redundant validateForm from common.dev.js and uses the one
 in wp-ajax-response.js (though, in retrospect, it may be better to move it
 to a more agnostic place so that non-ajax submits can make use of it too).

 Patch trims field values and sets focus on the first invalid field.

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


More information about the wp-trac mailing list