From caf030bbb3da8c16727f89fd29f2385ddc7d5e7b Mon Sep 17 00:00:00 2001 From: Pavithra Ramachandran Date: Wed, 23 Oct 2019 11:03:22 +0530 Subject: [PATCH 1/2] show full decription when double click on ellipse --- .../main/resources/org/apache/spark/ui/static/webui.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/core/src/main/resources/org/apache/spark/ui/static/webui.js b/core/src/main/resources/org/apache/spark/ui/static/webui.js index 89622106ff1f0..08bed77edef85 100644 --- a/core/src/main/resources/org/apache/spark/ui/static/webui.js +++ b/core/src/main/resources/org/apache/spark/ui/static/webui.js @@ -87,4 +87,11 @@ $(function() { collapseTablePageLoad('collapse-aggregated-runningExecutions','aggregated-runningExecutions'); collapseTablePageLoad('collapse-aggregated-completedExecutions','aggregated-completedExecutions'); collapseTablePageLoad('collapse-aggregated-failedExecutions','aggregated-failedExecutions'); -}); \ No newline at end of file +}); + +$(function() { + // Trigger a double click on the span to show full job description. + $(".description-input").dblclick(function() { + $(this).removeClass("description-input").addClass("description-input-full"); + }); +}); From c07c0b3fd8de2b494c674ac5e1d5cdb1f0513f6a Mon Sep 17 00:00:00 2001 From: Pavithra Ramachandran Date: Wed, 23 Oct 2019 15:46:17 +0530 Subject: [PATCH 2/2] review comment updation --- core/src/main/resources/org/apache/spark/ui/static/webui.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/main/resources/org/apache/spark/ui/static/webui.js b/core/src/main/resources/org/apache/spark/ui/static/webui.js index 08bed77edef85..cf04db28804c1 100644 --- a/core/src/main/resources/org/apache/spark/ui/static/webui.js +++ b/core/src/main/resources/org/apache/spark/ui/static/webui.js @@ -90,8 +90,8 @@ $(function() { }); $(function() { - // Trigger a double click on the span to show full job description. - $(".description-input").dblclick(function() { - $(this).removeClass("description-input").addClass("description-input-full"); + // Show/hide full job description on click event. + $(".description-input").click(function() { + $(this).toggleClass("description-input-full"); }); });