Skip to content

Commit ef2d63b

Browse files
gengliangwangHyukjinKwon
authored andcommitted
[SPARK-27201][WEBUI] Toggle full job description on click
## What changes were proposed in this pull request? Previously, in #6646 there was an improvement to show full job description after double clicks. I think this is a bit hard to be noticed by some users. I suggest changing the event to one click. Also, after the full description is shown, another click should be able to hide the overflow text again. Before click: ![short](https://user-images.githubusercontent.com/1097932/54608784-79bfca80-4a8c-11e9-912b-30799be0d6cb.png) After click: ![full](https://user-images.githubusercontent.com/1097932/54608790-7b898e00-4a8c-11e9-9251-86061158db68.png) Click again: ![short](https://user-images.githubusercontent.com/1097932/54608784-79bfca80-4a8c-11e9-912b-30799be0d6cb.png) ## How was this patch tested? Manually check. Closes #24145 from gengliangwang/showDescriptionDetail. Authored-by: Gengliang Wang <gengliang.wang@databricks.com> Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
1 parent 1882912 commit ef2d63b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ $(function() {
8383
$(this).parent().find('input[type="checkbox"]').trigger('click');
8484
});
8585

86-
// Trigger a double click on the span to show full job description.
87-
$(".description-input").dblclick(function() {
88-
$(this).removeClass("description-input").addClass("description-input-full");
86+
// Show/hide full job description on click event.
87+
$(".description-input").click(function() {
88+
$(this).toggleClass("description-input-full");
8989
});
9090
});

0 commit comments

Comments
 (0)