Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Delisle <marc@infomarc.info>2015-04-09 21:11:02 +0300
committerMarc Delisle <marc@infomarc.info>2015-04-09 21:11:02 +0300
commit0065f72ba9370234f278608324dbe83182f42007 (patch)
tree59ec6e958fbe873bc918db0ff3586c2826e3974f /js/tbl_change.js
parent97f34d1caa5c77d171c330df7af499bb799074bd (diff)
parent2169a21a015825a2aa0860cd6d2c6ec65ee5e498 (diff)
Merge pull request #1639 from whitepiegon/masterFeature2
reported bug removal for text field
Diffstat (limited to 'js/tbl_change.js')
-rw-r--r--js/tbl_change.js22
1 files changed, 12 insertions, 10 deletions
diff --git a/js/tbl_change.js b/js/tbl_change.js
index 9f77872a56..7f66999478 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", {