Rename function to a better name
This commit is contained in:
@@ -155,8 +155,8 @@ function isTime(val)
|
|||||||
return false;
|
return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
//validate the datetime and integer
|
|
||||||
function Validator(urlField, multi_edit,theType){
|
function verificationsAfterFieldChange(urlField, multi_edit,theType){
|
||||||
var rowForm = document.forms['insertForm'];
|
var rowForm = document.forms['insertForm'];
|
||||||
var evt = window.event || arguments.callee.caller.arguments[0];
|
var evt = window.event || arguments.callee.caller.arguments[0];
|
||||||
var target = evt.target || evt.srcElement;
|
var target = evt.target || evt.srcElement;
|
||||||
@@ -394,7 +394,7 @@ $(document).ready(function() {
|
|||||||
.data('new_row_index', new_row_index)
|
.data('new_row_index', new_row_index)
|
||||||
.bind('change', function(e) {
|
.bind('change', function(e) {
|
||||||
var $changed_element = $(this);
|
var $changed_element = $(this);
|
||||||
Validator(
|
verificationsAfterFieldChange(
|
||||||
$changed_element.data('hashed_field'),
|
$changed_element.data('hashed_field'),
|
||||||
$changed_element.data('new_row_index'),
|
$changed_element.data('new_row_index'),
|
||||||
$changed_element.closest('tr').find('span.column_type').html()
|
$changed_element.closest('tr').find('span.column_type').html()
|
||||||
|
@@ -406,7 +406,7 @@ foreach ($rows as $row_id => $vrow) {
|
|||||||
$field['len'] = PMA_DBI_field_len($vresult, $i);
|
$field['len'] = PMA_DBI_field_len($vresult, $i);
|
||||||
}
|
}
|
||||||
//Call validation when the form submited...
|
//Call validation when the form submited...
|
||||||
$unnullify_trigger = $chg_evt_handler . "=\"return Validator('". PMA_escapeJsString($field['Field_md5']) . "', '"
|
$unnullify_trigger = $chg_evt_handler . "=\"return verificationsAfterFieldChange('". PMA_escapeJsString($field['Field_md5']) . "', '"
|
||||||
. PMA_escapeJsString($jsvkey) . "','".$field['pma_type']."')\"";
|
. PMA_escapeJsString($jsvkey) . "','".$field['pma_type']."')\"";
|
||||||
|
|
||||||
// Use an MD5 as an array index to avoid having special characters in the name atttibute (see bug #1746964 )
|
// Use an MD5 as an array index to avoid having special characters in the name atttibute (see bug #1746964 )
|
||||||
|
Reference in New Issue
Block a user