[Phpmyadmin-git] [SCM] phpMyAdmin branch, master, updated. RELEASE_3_4_0RC2-263-gb276728
Marc Delisle
lem9 at users.sourceforge.net
Sat Apr 30 16:54:21 CEST 2011
The branch, master has been updated
via b27672866683d4a1b3f0d82278804165b0d63466 (commit)
from 55693163892d4cbae2a7b8abb4c8445e0fb7b6b1 (commit)
- Log -----------------------------------------------------------------
commit b27672866683d4a1b3f0d82278804165b0d63466
Author: Marc Delisle <marc at infomarc.info>
Date: Sat Apr 30 10:54:03 2011 -0400
Undefined variable
-----------------------------------------------------------------------
Summary of changes:
js/tbl_change.js | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/js/tbl_change.js b/js/tbl_change.js
index 2d33884..a6d4be9 100644
--- a/js/tbl_change.js
+++ b/js/tbl_change.js
@@ -165,7 +165,7 @@ function verificationsAfterFieldChange(urlField, multi_edit, theType){
// Unchecks the Ignore checkbox for the current row
$("input[name='insert_ignore_" + multi_edit + "']").attr({'checked': false});
- $this_input = $("input[name='fields[multi_edit][" + multi_edit + "][" + urlField + "]']");
+ var $this_input = $("input[name='fields[multi_edit][" + multi_edit + "][" + urlField + "]']");
// Does this field come from datepicker?
if ($this_input.data('comes_from') == 'datepicker') {
@@ -214,11 +214,10 @@ function verificationsAfterFieldChange(urlField, multi_edit, theType){
}
}
//validate for integer type
- if(theType.substring(0,3)=="int"){
-
- if(isNaN(dt.value)){
- dt.className="invalid_value";
- return false;
+ if(theType.substring(0,3) == "int"){
+ if(isNaN($this_input.val())){
+ $this_input.addClass("invalid_value");
+ return false;
}
}
}
hooks/post-receive
--
phpMyAdmin
More information about the Git
mailing list