Bug Tracker

Modify

Ticket #3431 (closed enhancement: fixed)

Opened 5 years ago

Last modified 5 years ago

[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:
Blocking: Blocked by:

Description

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.

Change History

comment:1 Changed 5 years ago by flesler

  • Owner set to joern

comment:2 Changed 5 years ago by scott.gonzal

  • Status changed from new to closed
  • Resolution set to fixed

This has already been done in current SVN.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.