Better support for noclickable rows.
This commit is contained in:
@@ -14,6 +14,7 @@ $Source$
|
||||
* tbl_query_box.php: Remove unused file.
|
||||
* libraries/tbl_properties.inc.php: Disable clicking events on table
|
||||
creation (bug #1358896).
|
||||
* js/functions.js: Better support for noclickable rows (see above).
|
||||
|
||||
2005-11-24 Sebastian Mendel <cybot_tm@users.sourceforge.net>
|
||||
* themes/original/*, css/phpmyadmin.css.php:
|
||||
|
@@ -473,7 +473,7 @@ function PMA_markRowsInit() {
|
||||
var rows = document.getElementsByTagName('tr');
|
||||
for ( var i = 0; i < rows.length; i++ ) {
|
||||
// ... with the class 'odd' or 'even' ...
|
||||
if ( 'odd' != rows[i].className && 'even' != rows[i].className ) {
|
||||
if ( 'odd' != rows[i].className.substr(0,3) && 'even' != rows[i].className.substr(0,4) ) {
|
||||
continue;
|
||||
}
|
||||
// ... add event listeners ...
|
||||
@@ -487,6 +487,10 @@ function PMA_markRowsInit() {
|
||||
this.className = this.className.replace( ' hover', '' );
|
||||
}
|
||||
}
|
||||
// Do not set click events if not wanted
|
||||
if (rows[i].className.search(/noclick/) != -1) {
|
||||
continue;
|
||||
}
|
||||
// ... and to mark the row on click ...
|
||||
rows[i].onmousedown = function() {
|
||||
var unique_id;
|
||||
|
Reference in New Issue
Block a user