Replace to_hide and to_show jQuery object with .add result

jQuery.add returns a new jQuery object from the union and do not modify the
existing ones.
This commit is contained in:
Cédric Krier committed 2024-06-19 16:14:55 +02:00
1 parent 8903615bfa
commit 801d087411
1 file changed
+2 -2
+2 -2
View File
@@ -1027,9 +1027,9 @@
var selector = `tr > td:nth-child(${i + offset + 1})`;
if ((thead_visible && column.header.is(':hidden')) ||
(column.header.css('display') == 'none')) {
to_hide.add(this.tbody.find(selector));
to_hide = to_hide.add(this.tbody.find(selector));
} else {
to_show.add(this.tbody.find(selector));
to_show = to_show.add(this.tbody.find(selector));
}
}