[Phpmyadmin-git] [SCM] phpMyAdmin branch, master, updated. RELEASE_3_4_0BETA2-68-g5d4999c

Marc Delisle lem9 at users.sourceforge.net
Wed Jan 12 17:00:29 CET 2011


The branch, master has been updated
       via  5d4999c8cc5692cb47552c367863d0ab9a601605 (commit)
      from  7e79589eba71b758e94587fae369ce5792da4d17 (commit)


- Log -----------------------------------------------------------------
commit 5d4999c8cc5692cb47552c367863d0ab9a601605
Author: Marc Delisle <marc at infomarc.info>
Date:   Wed Jan 12 10:59:16 2011 -0500

    Use a multiple selector
    Cache jQuery object to avoid unneeded DOM traversal

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

Summary of changes:
 js/sql.js |   13 ++++---------
 1 files changed, 4 insertions(+), 9 deletions(-)

diff --git a/js/sql.js b/js/sql.js
index e61214e..43b3af7 100644
--- a/js/sql.js
+++ b/js/sql.js
@@ -106,15 +106,10 @@ function appendInlineAnchor() {
             $this_td.after($cloned_anchor);
         });
 
-        $('#rowsDeleteForm').find('thead').find('th').each(function() {
-            if($(this).attr('colspan') == 3) {
-                $(this).attr('colspan', '4')
-            }
-        });
-		
-		$('#rowsDeleteForm').find('tbody').find('th').each(function() {
-            if($(this).attr('colspan') == 3) {
-                $(this).attr('colspan', '4')
+        $('#rowsDeleteForm').find('thead, tbody').find('th').each(function() {
+            var $this_th = $(this);
+            if ($this_th.attr('colspan') == 3) {
+                $this_th.attr('colspan', '4')
             }
         });
     }


hooks/post-receive
-- 
phpMyAdmin




More information about the Git mailing list