The branch, master has been updated
       via  b27672866683d4a1b3f0d82278804165b0d63466 (commit)
      from  55693163892d4cbae2a7b8abb4c8445e0fb7b6b1 (commit)


- Log -----------------------------------------------------------------
commit b27672866683d4a1b3f0d82278804165b0d63466
Author: Marc Delisle <[email protected]>
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

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Phpmyadmin-git mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/phpmyadmin-git

Reply via email to