From 80a9ed2e8ccecedc35b497e20b7b53f947507743 Mon Sep 17 00:00:00 2001 From: Atul Pratap Singh Date: Tue, 21 Jul 2015 14:40:16 +0530 Subject: Call form.validate before adding rules Signed-off-by: Atul Pratap Singh --- js/tbl_change.js | 2 ++ 1 file changed, 2 insertions(+) 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", { -- cgit v1.2.3