From bada833326f7a308d82eef8484b5802514be7ce8 Mon Sep 17 00:00:00 2001 From: Garvin Hicking Date: Thu, 6 May 2004 12:11:15 +0000 Subject: [PATCH] Bug #949087 - js error --- ChangeLog | 4 ++++ libraries/display_tbl.lib.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 10310e269..737300cea 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,10 @@ phpMyAdmin - Changelog $Id$ $Source$ +2004-05-06 Garvin Hicking + * libraries/display_tbl.lib.php: Bug #949087 - Fixed JS error for + mousepointer hovering on rows w/o checkboxes. + 2004-05-05 Marc Delisle * tbl_select.php: patch #939197, new choice of operator LIKE %...% because this syntax is so often used, thanks to Ruben Barkow (rubo77) diff --git a/libraries/display_tbl.lib.php b/libraries/display_tbl.lib.php index f13c74688..bf2ce54cf 100644 --- a/libraries/display_tbl.lib.php +++ b/libraries/display_tbl.lib.php @@ -1180,7 +1180,7 @@ function PMA_displayTableBody(&$dt_result, &$is_display, $map, $analyzed_sql) $column_style = ''; } - $column_style .= ' onmousedown="document.getElementById(\'id_rows_to_delete' . $row_no . '\').checked = (document.getElementById(\'id_rows_to_delete' . $row_no . '\').checked ? false : true);" '; + $column_style .= ' onmousedown="if (document.getElementById(\'id_rows_to_delete' . $row_no . '\')) { document.getElementById(\'id_rows_to_delete' . $row_no . '\').checked = (document.getElementById(\'id_rows_to_delete' . $row_no . '\').checked ? false : true); }" '; // garvin: Wrap MIME-transformations. [MIME] $default_function = 'default_function'; // default_function