Skip to main content

Bug Tracker

Side navigation

#3431 closed enhancement (fixed)

Opened October 01, 2008 11:22AM UTC

Closed October 01, 2008 02:36PM UTC

[validate] validate methods should use 'value' instead of 'element.value' when validating

Reported by: Syko Owned by: joern
Priority: trivial Milestone: 1.3
Component: plugin Version: 1.2.6
Keywords: Cc:
Blocked by: Blocking:

The validation methods are passed 2 parameters: value and element.

Some methods use element.value when validating, instead of the 'value' parameter which prevents nesting those methods in others.

eg. if I wanted to let the user type multiple e-mail addresses separated by a comma I would create a validation method which splits the text apart and then passes each piece to the 'email' validation method.

Validation methods probably weren't meant to be nested but it would be nice to be able to use them whenever possible.

Attachments (0)
Change History (2)

Changed October 01, 2008 02:26PM UTC by flesler comment:1

owner: → joern

Changed October 01, 2008 02:36PM UTC by scott.gonzal comment:2

resolution: → fixed
status: newclosed

This has already been done in current SVN.