Skip to content

Commit d3c63c8

Browse files
committed
Fixed a little bit bugs
1 parent a36291b commit d3c63c8

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

core/src/main/resources/org/apache/spark/ui/static/timeline-view.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,3 +124,7 @@ tr.corresponding-item-hover>td, tr.corresponding-item-hover>th {
124124
.control-panel {
125125
margin-bottom: 5px;
126126
}
127+
128+
span.expand-application-timeline, span.expand-job-timeline {
129+
cursor: pointer;
130+
}

core/src/main/resources/org/apache/spark/ui/static/timeline-view.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,16 @@ function drawJobTimeline(groupArray, eventObjArray, startTime) {
103103

104104
$(this).hover(
105105
function() {
106-
$("#stage-" + getStageId(this)).addClass("corresponding-item-hover");
106+
var idAndAttempt = getStageIdAndAttempt(this);
107+
var id = idAndAttempt[0];
108+
var attempt = idAndAttempt[1];
109+
$("#stage-" + id + "-" + attempt).addClass("corresponding-item-hover");
107110
},
108111
function() {
109-
$("#stage-" + getStageId(this)).removeClass("corresponding-item-hover");
112+
var idAndAttempt = getStageIdAndAttempt(this);
113+
var id = idAndAttempt[0];
114+
var attempt = idAndAttempt[1];
115+
$("#stage-" + id + "-" + attempt).removeClass("corresponding-item-hover");
110116
}
111117
);
112118
});

0 commit comments

Comments
 (0)