Repository: spark
Updated Branches:
  refs/heads/branch-1.2 70f6f36e0 -> 2c84178b8


[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.

Author: Kay Ousterhout <[email protected]>

Closes #3117 from kayousterhout/striping and squashes the following commits:

be6e10a [Kay Ousterhout] [SPARK-4255] Fix incorrect table striping

(cherry picked from commit 5f27ae16d5b016fae4afeb0f2ad779fd3130b390)
Signed-off-by: Kay Ousterhout <[email protected]>


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/2c84178b
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/2c84178b
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/2c84178b

Branch: refs/heads/branch-1.2
Commit: 2c84178b8283269512b1c968b9995a7bdedd7aa5
Parents: 70f6f36
Author: Kay Ousterhout <[email protected]>
Authored: Thu Nov 6 00:03:03 2014 -0800
Committer: Kay Ousterhout <[email protected]>
Committed: Thu Nov 6 00:03:24 2014 -0800

----------------------------------------------------------------------
 .../resources/org/apache/spark/ui/static/additional-metrics.js  | 2 ++
 core/src/main/resources/org/apache/spark/ui/static/table.js     | 5 -----
 2 files changed, 2 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/2c84178b/core/src/main/resources/org/apache/spark/ui/static/additional-metrics.js
----------------------------------------------------------------------
diff --git 
a/core/src/main/resources/org/apache/spark/ui/static/additional-metrics.js 
b/core/src/main/resources/org/apache/spark/ui/static/additional-metrics.js
index c5936b5..badd85e 100644
--- a/core/src/main/resources/org/apache/spark/ui/static/additional-metrics.js
+++ b/core/src/main/resources/org/apache/spark/ui/static/additional-metrics.js
@@ -39,6 +39,8 @@ $(function() {
         var column = "table ." + $(this).attr("name");
         $(column).hide();
     });
+    // Stripe table rows after rows have been hidden to ensure correct 
striping.
+    stripeTables();
 
     $("input:checkbox").click(function() {
         var column = "table ." + $(this).attr("name");

http://git-wip-us.apache.org/repos/asf/spark/blob/2c84178b/core/src/main/resources/org/apache/spark/ui/static/table.js
----------------------------------------------------------------------
diff --git a/core/src/main/resources/org/apache/spark/ui/static/table.js 
b/core/src/main/resources/org/apache/spark/ui/static/table.js
index 32187ba..6bb0301 100644
--- a/core/src/main/resources/org/apache/spark/ui/static/table.js
+++ b/core/src/main/resources/org/apache/spark/ui/static/table.js
@@ -28,8 +28,3 @@ function stripeTables() {
         });
     });
 }
-
-/* Stripe all tables after pages finish loading. */
-$(function() {
-    stripeTables();
-});


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to