Repository: spark
Updated Branches:
  refs/heads/branch-1.4 b6fdc6cf1 -> 9d1f4d66b


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

(cherry picked from commit 081db9479abc559b26d115298fbcdc109858cad3)
Signed-off-by: Andrew Or <and...@databricks.com>


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

Branch: refs/heads/branch-1.4
Commit: 9d1f4d66bd8bb899ae7beaac0a3e0be3d9fb9886
Parents: b6fdc6c
Author: 979969786 <q79969...@gmail.com>
Authored: Sat Jun 6 23:15:27 2015 -0700
Committer: Andrew Or <and...@databricks.com>
Committed: Sat Jun 6 23:15:35 2015 -0700

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


http://git-wip-us.apache.org/repos/asf/spark/blob/9d1f4d66/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 013db8d..0b450dc 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");
+    });
 });

http://git-wip-us.apache.org/repos/asf/spark/blob/9d1f4d66/core/src/main/resources/org/apache/spark/ui/static/webui.css
----------------------------------------------------------------------
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 e7c1d47..b1cef47 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;


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org
For additional commands, e-mail: commits-h...@spark.apache.org

Reply via email to