From 027f4286edcf9151faa886db5b5fa1bc8b18271b Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Mon, 3 Jan 2011 10:59:08 -0500 Subject: [PATCH] Rename function to a better name --- js/tbl_change.js | 6 +++--- tbl_change.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/js/tbl_change.js b/js/tbl_change.js index 09e826452..ed13f38cf 100644 --- a/js/tbl_change.js +++ b/js/tbl_change.js @@ -155,8 +155,8 @@ function isTime(val) return false; 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 evt = window.event || arguments.callee.caller.arguments[0]; var target = evt.target || evt.srcElement; @@ -394,7 +394,7 @@ $(document).ready(function() { .data('new_row_index', new_row_index) .bind('change', function(e) { var $changed_element = $(this); - Validator( + verificationsAfterFieldChange( $changed_element.data('hashed_field'), $changed_element.data('new_row_index'), $changed_element.closest('tr').find('span.column_type').html() diff --git a/tbl_change.php b/tbl_change.php index 5724303bf..8a594d1be 100644 --- a/tbl_change.php +++ b/tbl_change.php @@ -406,7 +406,7 @@ foreach ($rows as $row_id => $vrow) { $field['len'] = PMA_DBI_field_len($vresult, $i); } //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']."')\""; // Use an MD5 as an array index to avoid having special characters in the name atttibute (see bug #1746964 )