Convert new column checks to jQuery.
This commit is contained in:
@@ -702,13 +702,14 @@ function checkTableEditForm(theForm, fieldsCnt)
|
|||||||
|
|
||||||
for (i=0; i<fieldsCnt; i++)
|
for (i=0; i<fieldsCnt; i++)
|
||||||
{
|
{
|
||||||
id = "field_" + i + "_2";
|
id = "#field_" + i + "_2";
|
||||||
elm = getElement(id);
|
elm = $(id);
|
||||||
if (elm.value == 'VARCHAR' || elm.value == 'CHAR' || elm.value == 'BIT' || elm.value == 'VARBINARY' || elm.value == 'BINARY') {
|
val = elm.val()
|
||||||
elm2 = getElement("field_" + i + "_3");
|
if (val == 'VARCHAR' || val == 'CHAR' || val == 'BIT' || val == 'VARBINARY' || val == 'BINARY') {
|
||||||
val = parseInt(elm2.value);
|
elm2 = $("#field_" + i + "_3");
|
||||||
elm3 = getElement("field_" + i + "_1");
|
val = parseInt(elm2.val());
|
||||||
if (isNaN(val) && elm3.value != "") {
|
elm3 = $("#field_" + i + "_1");
|
||||||
|
if (isNaN(val) && elm3.val() != "") {
|
||||||
elm2.select();
|
elm2.select();
|
||||||
alert(PMA_messages['strNotNumber']);
|
alert(PMA_messages['strNotNumber']);
|
||||||
elm2.focus();
|
elm2.focus();
|
||||||
|
Reference in New Issue
Block a user