[Phpmyadmin-git] [SCM] phpMyAdmin branch, master, updated. RELEASE_3_4_0BETA2-1622-gc05c4da

Marc Delisle lem9 at users.sourceforge.net
Fri Feb 4 18:43:07 CET 2011


The branch, master has been updated
       via  c05c4da9840b909c7317e2dbb3ebbf8d8f13b6ab (commit)
      from  8a394db00c9a89af1ad9d56d02cca96dc04a9290 (commit)


- Log -----------------------------------------------------------------
commit c05c4da9840b909c7317e2dbb3ebbf8d8f13b6ab
Author: Jan Prachaƙ <jan.prachar at gmail.com>
Date:   Tue Feb 1 22:50:18 2011 +0100

    Do not change table row state when clicked on an anchor or inside a form element in inline editing mode.

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

Summary of changes:
 js/functions.js |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/js/functions.js b/js/functions.js
index 542305e..e445b92 100644
--- a/js/functions.js
+++ b/js/functions.js
@@ -906,10 +906,13 @@ $(document).ready(function() {
      * next pages reached via AJAX); a tr may have the class noclick to remove
      * this behavior.
      */
-    $('tr.odd:not(.noclick), tr.even:not(.noclick)').live('click',function() {
-        var $tr = $(this);
-        $tr.toggleClass('marked');
-        $tr.children().toggleClass('marked');
+    $('tr.odd:not(.noclick), tr.even:not(.noclick)').live('click',function(e) {
+        //do not trigger when clicked on anchor or inside input element (in inline editing mode) with exception of the first checkbox
+        if (!jQuery(e.target).is('a, a *, :input:not([name^="rows_to_delete"])')) {
+            var $tr = $(this);
+            $tr.toggleClass('marked');
+            $tr.children().toggleClass('marked');
+        }
     });
 
     /**


hooks/post-receive
-- 
phpMyAdmin




More information about the Git mailing list