Skip to content

Commit be6e10a

Browse files
committed
[SPARK-4255] Fix incorrect table striping
This commit stripes table rows after hiding some rows, to ensure that rows are correct striped to alternate white and grey even when rows are hidden by default.
1 parent 5b3b6f6 commit be6e10a

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

core/src/main/resources/org/apache/spark/ui/static/additional-metrics.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ $(function() {
3939
var column = "table ." + $(this).attr("name");
4040
$(column).hide();
4141
});
42+
// Stripe table rows after rows have been hidden to ensure correct striping.
43+
stripeTables();
4244

4345
$("input:checkbox").click(function() {
4446
var column = "table ." + $(this).attr("name");

core/src/main/resources/org/apache/spark/ui/static/table.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,3 @@ function stripeTables() {
2828
});
2929
});
3030
}
31-
32-
/* Stripe all tables after pages finish loading. */
33-
$(function() {
34-
stripeTables();
35-
});

0 commit comments

Comments
 (0)