From 18b435fed88308f5564cd9c8f8099e6e3656fa32 Mon Sep 17 00:00:00 2001 From: Philip Frank Date: Tue, 6 Apr 2010 09:32:12 +0200 Subject: [PATCH] Use jQuery to bind click events on table rows Patch #2982132 --- js/functions.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/functions.js b/js/functions.js index 5c577a702..d242141fa 100644 --- a/js/functions.js +++ b/js/functions.js @@ -833,7 +833,7 @@ function PMA_markRowsInit() { continue; } // ... and to mark the row on click ... - rows[i].onmousedown = function(event) { + $(rows[i]).bind('mousedown', function(event) { var unique_id; var checkbox; var table; @@ -895,7 +895,7 @@ function PMA_markRowsInit() { table.lastClicked = this.rowIndex; } } - } + }); // ... and disable label ... var labeltag = rows[i].getElementsByTagName('label')[0];