This commit is contained in:
Alexander M. Turek
2003-07-16 08:29:07 +00:00
parent 43306e3aa1
commit 0a7f4edda1
2 changed files with 16 additions and 10 deletions

View File

@@ -5,6 +5,10 @@ phpMyAdmin - Changelog
$Id$ $Id$
$Source$ $Source$
2003-07-16 Alexander M. Turek <rabus@users.sourceforge.net>
* libraries/functions.js: Bug #771794 (CHAR length check although field name
is empty).
2003-07-15 Marc Delisle <lem9@users.sourceforge.net> 2003-07-15 Marc Delisle <lem9@users.sourceforge.net>
* tbl_properties.inc.php3: bug 771523: wrong type displayed for * tbl_properties.inc.php3: bug 771523: wrong type displayed for
a LONGTEXT with character set latin7 a LONGTEXT with character set latin7

View File

@@ -253,9 +253,10 @@ function checkTableEditForm(theForm, fieldsCnt)
var id = "field_" + i + "_2"; var id = "field_" + i + "_2";
var elm = getElement(id); var elm = getElement(id);
if (elm.value == 'VARCHAR' || elm.value == 'CHAR') { if (elm.value == 'VARCHAR' || elm.value == 'CHAR') {
elm2 = getElement("field_" + i + "_3") elm2 = getElement("field_" + i + "_3");
val = parseInt(elm2.value); val = parseInt(elm2.value);
if (isNaN(val)) { elm3 = getElement("field_" + i + "_1");
if (isNaN(val) && elm3.value != "") {
elm2.select(); elm2.select();
alert(errorMsg1); alert(errorMsg1);
elm2.focus(); elm2.focus();
@@ -263,6 +264,7 @@ function checkTableEditForm(theForm, fieldsCnt)
} }
} }
} }
return true;
} // enf of the 'checkTableEditForm()' function } // enf of the 'checkTableEditForm()' function