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

WordPress Trac wp-trac at lists.automattic.com
Thu Nov 18 04:18:12 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      
--------------------------+-------------------------------------------------

Comment(by batmoo):

 As far as I can tell, the only place that validateForm is in use is on
 tags.dev.js.  Even then, it's redundant as almost all of the JS validation
 on the site is being handled by wp-ajax-response.

 Regardless, new patch restores validateForm on common.dev.js, adds trim
 and focusing, and I've added some indentation to the functions to make
 them a bit more readable :)

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


More information about the wp-trac mailing list