The branch, master has been updated via 027f4286edcf9151faa886db5b5fa1bc8b18271b (commit) from e9ee1615e75919c8963caa1af8e0fd73222b081c (commit)
- Log ----------------------------------------------------------------- commit 027f4286edcf9151faa886db5b5fa1bc8b18271b Author: Marc Delisle marc@infomarc.info Date: Mon Jan 3 10:59:08 2011 -0500
Rename function to a better name
-----------------------------------------------------------------------
Summary of changes: 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 09e8264..ed13f38 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 5724303..8a594d1 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 )
hooks/post-receive