Skip to content

Commit d99a90c

Browse files
authored
Merge pull request #393 from jenkinsci/redraw-details-icons-on-table-load-event
Correctly hide and show the detail buttons on table redraws
2 parents 134baaf + ec7e193 commit d99a90c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/main/webapp/js/table.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,15 @@ jQuery3(document).ready(function () {
136136
const tooltip = new bootstrap5.Tooltip($(this)[0]);
137137
tooltip.enable();
138138
});
139+
table.find('.details-icon-close').each(function () {
140+
$(this).hide();
141+
});
142+
table.find('.details-icon-open').each(function () {
143+
$(this).show();
144+
});
145+
table.rows().every(function () {
146+
this.child.hide();
147+
});
139148
});
140149

141150
if (table.is(":visible")) {

0 commit comments

Comments
 (0)