Skip to content

Commit 1296bbb

Browse files
PavithraRamachandrangengliangwang
authored andcommitted
[SPARK-29504][WEBUI] Toggle full job description on click
### What changes were proposed in this pull request? On clicking job description in jobs page, the description was not shown fully. Add the function for the click event on description. ### Why are the changes needed? when there is a long description of a job, it cannot be seen fully in the UI. The feature was added in #24145 But it is missed after #25374 Before change: ![Screenshot from 2019-10-23 11-23-00](https://user-images.githubusercontent.com/51401130/67361914-827b0080-f587-11e9-9181-d49a6a836046.png) After change: on Double click over decription ![Screenshot from 2019-10-23 11-20-02](https://user-images.githubusercontent.com/51401130/67361936-932b7680-f587-11e9-9e59-d290abed4b70.png) ### Does this PR introduce any user-facing change? No ### How was this patch tested? Manually test Closes #26222 from PavithraRamachandran/jobs_description_tooltip. Authored-by: Pavithra Ramachandran <[email protected]> Signed-off-by: Gengliang Wang <[email protected]>
1 parent 9e77d48 commit 1296bbb

File tree

1 file changed

+8
-1
lines changed
  • core/src/main/resources/org/apache/spark/ui/static

1 file changed

+8
-1
lines changed

core/src/main/resources/org/apache/spark/ui/static/webui.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,11 @@ $(function() {
8787
collapseTablePageLoad('collapse-aggregated-runningExecutions','aggregated-runningExecutions');
8888
collapseTablePageLoad('collapse-aggregated-completedExecutions','aggregated-completedExecutions');
8989
collapseTablePageLoad('collapse-aggregated-failedExecutions','aggregated-failedExecutions');
90-
});
90+
});
91+
92+
$(function() {
93+
// Show/hide full job description on click event.
94+
$(".description-input").click(function() {
95+
$(this).toggleClass("description-input-full");
96+
});
97+
});

0 commit comments

Comments
 (0)