make row marking in horizontal mode work with AJAX

This commit is contained in:
Marc Delisle
2010-10-25 13:40:53 -04:00
parent f734c4c1ac
commit 89821e0357

View File

@@ -846,6 +846,16 @@ function checkTransmitDump(theForm, theAction)
return true;
} // end of the 'checkTransmitDump()' function
/**
* For row marking in horizontal mode (use "live" so that it works also for
* next pages reached via AJAX); a tr may have the class noclick to remove
* this behavior.
*/
$(document).ready(function() {
$('tr.odd:not(.noclick), tr.even:not(.noclick)').live('click',function() {
$(this).toggleClass('marked');
});
})
/**
* This array is used to remember mark status of rows in browse mode
@@ -903,12 +913,6 @@ function PMA_markRowsInit() {
marked_row[unique_id] = false;
}
if ( marked_row[unique_id] ) {
this.className += ' marked';
} else {
this.className = this.className.replace(' marked', '');
}
if ( checkbox && checkbox.disabled == false ) {
checkbox.checked = marked_row[unique_id];
if (typeof(event) == 'object') {