[Phpmyadmin-git] [SCM] phpMyAdmin branch, master, updated. RELEASE_3_3_8-10692-g6dd2e46

Marc Delisle lem9 at users.sourceforge.net
Tue Oct 26 13:58:25 CEST 2010


The branch, master has been updated
       via  6dd2e460f22b2f874e1a318c7f2e06d8219670be (commit)
      from  d0d96fbd5669e0537ad0088c6222c901b4d2a354 (commit)


- Log -----------------------------------------------------------------
commit 6dd2e460f22b2f874e1a318c7f2e06d8219670be
Author: Marc Delisle <marc at infomarc.info>
Date:   Tue Oct 26 07:58:17 2010 -0400

    row highlighting in horizontal mode for IE6 on pages reached via AJAX

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

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

diff --git a/js/functions.js b/js/functions.js
index dc459cd..6a764b1 100644
--- a/js/functions.js
+++ b/js/functions.js
@@ -858,6 +858,16 @@ $(document).ready(function() {
 })
 
 /**
+ * For row highlighting in horizontal mode (necessary for IE 6; use "live"
+ * so that it works also for pages reached via AJAX)
+ */
+$(document).ready(function() {
+    $('tr.odd, tr.even').live('hover',function() {
+        $(this).toggleClass('hover');
+    });
+})
+
+/**
  * This array is used to remember mark status of rows in browse mode
  */
 var marked_row = new Array;
@@ -875,16 +885,6 @@ function PMA_markRowsInit() {
             continue;
         }
         // ... add event listeners ...
-        // ... to highlight the row on mouseover ...
-        if ( navigator.appName == 'Microsoft Internet Explorer' ) {
-            // but only for IE, other browsers are handled by :hover in css
-            rows[i].onmouseover = function() {
-                this.className += ' hover';
-            }
-            rows[i].onmouseout = function() {
-                this.className = this.className.replace( ' hover', '' );
-            }
-        }
         // Do not set click events if not wanted
         if (rows[i].className.search(/noclick/) != -1) {
             continue;


hooks/post-receive
-- 
phpMyAdmin




More information about the Git mailing list