The branch, master has been updated
       via  e9ee1615e75919c8963caa1af8e0fd73222b081c (commit)
      from  032d6d5e0cbd16a071bbfe70f68d5008f3a07727 (commit)


- Log -----------------------------------------------------------------
commit e9ee1615e75919c8963caa1af8e0fd73222b081c
Author: Marc Delisle <[email protected]>
Date:   Mon Jan 3 10:52:17 2011 -0500

    Function was called from just one place to fold it inside caller; also 
recode it with jQuery

-----------------------------------------------------------------------

Summary of changes:
 js/tbl_change.js |   31 ++++++-------------------------
 1 files changed, 6 insertions(+), 25 deletions(-)

diff --git a/js/tbl_change.js b/js/tbl_change.js
index 66f5976..09e8264 100644
--- a/js/tbl_change.js
+++ b/js/tbl_change.js
@@ -160,7 +160,12 @@ function Validator(urlField, multi_edit,theType){
     var rowForm = document.forms['insertForm'];
     var evt = window.event || arguments.callee.caller.arguments[0];
     var target = evt.target || evt.srcElement;
-    unNullify(urlField, multi_edit);
+
+    // Unchecks the corresponding "NULL" control
+    $("input[name='fields_null[multi_edit][" + multi_edit + "][" + urlField + 
"]']").attr({'checked': false});
+
+    // Unchecks the Ignore checkbox for the current row
+    $("input[name='insert_ignore_" + multi_edit + "']").attr({'checked': 
false});
 
     if(target.name.substring(0,6)=="fields")
     {
@@ -226,30 +231,6 @@ function Validator(urlField, multi_edit,theType){
  /* End of datetime validation*/
 
 /**
- * Unchecks the "NULL" control when a function has been selected or a value
- * entered
- *
- * @param   string   the urlencoded field name
- * @param   string   the multi_edit row sequence number
- *
- * @return  boolean  always true
- */
-function unNullify(urlField, multi_edit)
-{
-    var rowForm = document.forms['insertForm'];
-
-    if (typeof(rowForm.elements['fields_null[multi_edit][' + multi_edit + '][' 
+ urlField + ']']) != 'undefined') {
-        rowForm.elements['fields_null[multi_edit][' + multi_edit + '][' + 
urlField + ']'].checked = false
-    } // end if
-
-    if (typeof(rowForm.elements['insert_ignore_' + multi_edit]) != 
'undefined') {
-        rowForm.elements['insert_ignore_' + multi_edit].checked = false
-    } // end if
-
-    return true;
-} // end of the 'unNullify()' function
-
-/**
  * Ajax handlers for Change Table page
  *
  * Actions Ajaxified here:


hooks/post-receive
-- 
phpMyAdmin

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Phpmyadmin-git mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/phpmyadmin-git

Reply via email to