diff options
author | 979969786 <q79969786@gmail.com> | 2015-06-06 23:15:27 -0700 |
---|---|---|
committer | Andrew Or <andrew@databricks.com> | 2015-06-06 23:15:27 -0700 |
commit | 081db9479abc559b26d115298fbcdc109858cad3 (patch) | |
tree | 45908363daf118e270864b217e7d6020c29f723d /core/src/main/resources/org | |
parent | 901a552c5e973262fddbf70ee2d4078c948bc668 (diff) | |
download | spark-081db9479abc559b26d115298fbcdc109858cad3.tar.gz spark-081db9479abc559b26d115298fbcdc109858cad3.tar.bz2 spark-081db9479abc559b26d115298fbcdc109858cad3.zip |
[SPARK-8145] [WEBUI] Trigger a double click on the span to show full job description.
When using the Spark SQL, Jobs tab and Stages tab display only part of SQL. I change it to display full SQL by double-click on the description span
before:
![before](https://cloud.githubusercontent.com/assets/5399861/8022257/9f8e0a22-0cf8-11e5-98c8-da4d7a615e7e.png)
after double click on the description span:
![after](https://cloud.githubusercontent.com/assets/5399861/8022261/dac08d4a-0cf8-11e5-8fe7-74c96c6ce933.png)
Author: 979969786 <q79969786@gmail.com>
Closes #6646 from 979969786/master and squashes the following commits:
b5ba20e [979969786] Trigger a double click on the span to show full job description.
Diffstat (limited to 'core/src/main/resources/org')
-rw-r--r-- | core/src/main/resources/org/apache/spark/ui/static/additional-metrics.js | 5 | ||||
-rw-r--r-- | core/src/main/resources/org/apache/spark/ui/static/webui.css | 8 |
2 files changed, 13 insertions, 0 deletions
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 013db8df9b..0b450dc76b 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 @@ -50,4 +50,9 @@ $(function() { $("span.additional-metric-title").click(function() { $(this).parent().find('input[type="checkbox"]').trigger('click'); }); + + // Trigger a double click on the span to show full job description. + $(".description-input").dblclick(function() { + $(this).removeClass("description-input").addClass("description-input-full"); + }); }); diff --git a/core/src/main/resources/org/apache/spark/ui/static/webui.css b/core/src/main/resources/org/apache/spark/ui/static/webui.css index e7c1d475d4..b1cef47042 100644 --- a/core/src/main/resources/org/apache/spark/ui/static/webui.css +++ b/core/src/main/resources/org/apache/spark/ui/static/webui.css @@ -135,6 +135,14 @@ pre { display: block; } +.description-input-full { + overflow: hidden; + text-overflow: ellipsis; + width: 100%; + white-space: normal; + display: block; +} + .stacktrace-details { max-height: 300px; overflow-y: auto; |