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


- Log -----------------------------------------------------------------
commit c05c4da9840b909c7317e2dbb3ebbf8d8f13b6ab
Author: Jan Prachaƙ <[email protected]>
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

------------------------------------------------------------------------------
The modern datacenter depends on network connectivity to access resources
and provide services. The best practices for maximizing a physical server's
connectivity to a physical network are well understood - see how these
rules translate into the virtual world? 
http://p.sf.net/sfu/oracle-sfdevnlfb
_______________________________________________
Phpmyadmin-git mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/phpmyadmin-git

Reply via email to