Skip to content

Commit

Permalink
Call form.validate before adding rules
Browse files Browse the repository at this point in the history
Signed-off-by: Atul Pratap Singh <atulpratapsingh05@gmail.com>
  • Loading branch information
atul516 committed Jul 21, 2015
1 parent 256d76f commit 80a9ed2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/tbl_change.js
Expand Up @@ -237,6 +237,8 @@ function verificationsAfterFieldChange(urlField, multi_edit, theType)
// if a function has been selected in the function drop-down,
// do not validate the input field
if (target.name && target.name.substring(0, 6) === "fields" && ! function_selected) {
//call validate before adding rules
$($this_input[0].form).validate();
// validate for date time
if (theType == "datetime" || theType == "time" || theType == "date" || theType == "timestamp") {
$this_input.rules("add", {
Expand Down

0 comments on commit 80a9ed2

Please sign in to comment.