diff options
author | Aayush Anand <aayushism12@gmail.com> | 2015-04-09 20:56:03 +0300 |
---|---|---|
committer | Aayush Anand <aayushism12@gmail.com> | 2015-04-09 20:56:03 +0300 |
commit | 2169a21a015825a2aa0860cd6d2c6ec65ee5e498 (patch) | |
tree | bf5899e8d0ee108a948a8d30dea5d295b6b16eff /js/tbl_change.js | |
parent | 95a5623a6c8e1e0aca01b4bf5e46c8ae152ca702 (diff) |
bug removal
Signed-off-by: Aayush Anand <aayushism12@gmail.com>
Diffstat (limited to 'js/tbl_change.js')
-rw-r--r-- | js/tbl_change.js | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/js/tbl_change.js b/js/tbl_change.js index d2f32bb701..61d7a9b4dd 100644 --- a/js/tbl_change.js +++ b/js/tbl_change.js @@ -260,17 +260,19 @@ function verificationsAfterFieldChange(urlField, multi_edit, theType) //validation for CHAR types } else if ($this_input.data('type') === 'CHAR') { var maxlen = $this_input.data('maxlength'); - if (maxlen <=4) { - maxlen=charExceptionHandling; - } - $this_input.rules("add", { - maxlength: { - param: maxlen, - depends: function() { - return checkForCheckbox(multi_edit); - } + if (typeof maxlen !== 'undefined') { + if (maxlen <=4) { + maxlen=charExceptionHandling; } - }); + $this_input.rules("add", { + maxlength: { + param: maxlen, + depends: function() { + return checkForCheckbox(multi_edit); + } + } + }); + } // validate binary & blob types } else if ($this_input.data('type') === 'HEX') { $this_input.rules("add", { |