diff options
author | Atul Pratap Singh <atulpratapsingh05@gmail.com> | 2015-07-21 12:10:16 +0300 |
---|---|---|
committer | Atul Pratap Singh <atulpratapsingh05@gmail.com> | 2015-07-21 12:10:16 +0300 |
commit | 80a9ed2e8ccecedc35b497e20b7b53f947507743 (patch) | |
tree | d1a941faac3ed7a1ac0cfcec556a32abcf3e0acc | |
parent | 256d76f8d0d53e44c649d00f9b719f3c99751271 (diff) |
Call form.validate before adding rules
Signed-off-by: Atul Pratap Singh <atulpratapsingh05@gmail.com>
-rw-r--r-- | js/tbl_change.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/js/tbl_change.js b/js/tbl_change.js index fbd5718faf..ba969a382c 100644 --- a/js/tbl_change.js +++ b/js/tbl_change.js @@ -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", { |