[Phpmyadmin-git] [SCM] phpMyAdmin branch, master, updated. RELEASE_3_3_7-10702-g89821e0

Marc Delisle lem9 at users.sourceforge.net
Mon Oct 25 19:41:05 CEST 2010


The branch, master has been updated
       via  89821e0357593782a0fe57900669d1b1188537ad (commit)
      from  f734c4c1acd47e6796e4fe20c8e518e7ac436e58 (commit)


- Log -----------------------------------------------------------------
commit 89821e0357593782a0fe57900669d1b1188537ad
Author: Marc Delisle <marc at infomarc.info>
Date:   Mon Oct 25 13:40:53 2010 -0400

    make row marking in horizontal mode work with AJAX

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

Summary of changes:
 js/functions.js |   16 ++++++++++------
 1 files changed, 10 insertions(+), 6 deletions(-)

diff --git a/js/functions.js b/js/functions.js
index 9facf22..dc459cd 100644
--- a/js/functions.js
+++ b/js/functions.js
@@ -846,6 +846,16 @@ function checkTransmitDump(theForm, theAction)
     return true;
 } // end of the 'checkTransmitDump()' function
 
+/**
+ * For row marking in horizontal mode (use "live" so that it works also for 
+ * next pages reached via AJAX); a tr may have the class noclick to remove
+ * this behavior.
+ */
+$(document).ready(function() {
+    $('tr.odd:not(.noclick), tr.even:not(.noclick)').live('click',function() {
+        $(this).toggleClass('marked');
+    });
+})
 
 /**
  * This array is used to remember mark status of rows in browse mode
@@ -903,12 +913,6 @@ function PMA_markRowsInit() {
                 marked_row[unique_id] = false;
             }
 
-            if ( marked_row[unique_id] ) {
-                this.className += ' marked';
-            } else {
-                this.className = this.className.replace(' marked', '');
-            }
-
             if ( checkbox && checkbox.disabled == false ) {
                 checkbox.checked = marked_row[unique_id];
                 if (typeof(event) == 'object') {


hooks/post-receive
-- 
phpMyAdmin




More information about the Git mailing list