Avoid naming of parameter as keyword.
This commit is contained in:
@@ -689,14 +689,14 @@ $(document).ready(function() {
|
|||||||
/**
|
/**
|
||||||
* Starting from some th, change the class of all td under it
|
* Starting from some th, change the class of all td under it
|
||||||
*/
|
*/
|
||||||
function PMA_changeClassForColumn($this_th, class) {
|
function PMA_changeClassForColumn($this_th, klass) {
|
||||||
// index 0 is the th containing the big T
|
// index 0 is the th containing the big T
|
||||||
var th_index = $this_th.index();
|
var th_index = $this_th.index();
|
||||||
// .eq() is zero-based
|
// .eq() is zero-based
|
||||||
th_index--;
|
th_index--;
|
||||||
var $tr_with_data = $this_th.closest('table').find('tbody tr ').has('td.data_inline_edit');
|
var $tr_with_data = $this_th.closest('table').find('tbody tr ').has('td.data_inline_edit');
|
||||||
$tr_with_data.each(function() {
|
$tr_with_data.each(function() {
|
||||||
$(this).find('td.data_inline_edit:eq('+th_index+')').toggleClass(class);
|
$(this).find('td.data_inline_edit:eq('+th_index+')').toggleClass(klass);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user