diff options
author | Madhura Jayaratne <madhura.cj@gmail.com> | 2015-04-10 08:30:59 +0300 |
---|---|---|
committer | Madhura Jayaratne <madhura.cj@gmail.com> | 2015-04-10 08:30:59 +0300 |
commit | 7daabce97f6923407ab0c93a813ae727d6e072a1 (patch) | |
tree | 98918e90d10fa4a9d538bf2b4d51c7c85047eaf4 /js/tbl_change.js | |
parent | 6a611abf99d69b22a14a3c2c70b5bb188d8aa43f (diff) | |
parent | eaf6114cd51fe04caa26fcae2a635c45453711d4 (diff) |
Merge branch 'master' of github.com:phpmyadmin/phpmyadmin
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 4acde2e7db..98f43b0ecc 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", { |