@@ -161,33 +161,6 @@ function drawTaskAssignmentTimeline(groupArray, eventObjArray, minLaunchTime, zo
161
161
taskTimeline . setWindow ( minLaunchTime , curEnd ) ;
162
162
setupZoomable ( '#task-assignment-timeline-zoom-lock' , taskTimeline ) ;
163
163
164
- function setupTaskEventAction ( ) {
165
- $ ( ".item.range.task.task-assignment-timeline-object" ) . each ( function ( ) {
166
- var getSelectorForTaskEntry = function ( baseElem ) {
167
- var taskIdxText = $ ( baseElem ) . find ( ".task-assignment-timeline-content" ) . attr ( "data-title" ) ;
168
- var taskIdx = taskIdxText . match ( "Task (\\d+)\\(" ) [ 1 ] ;
169
- return "#task-" + taskIdx ;
170
- } ;
171
-
172
- $ ( this ) . hover (
173
- function ( ) {
174
- $ ( getSelectorForTaskEntry ( this ) ) . addClass ( "corresponding-item-hover" ) ;
175
- $ ( $ ( this ) . find ( "div.task-assignment-timeline-content" ) [ 0 ] ) . tooltip ( "show" ) ;
176
- } ,
177
- function ( ) {
178
- $ ( getSelectorForTaskEntry ( this ) ) . removeClass ( "corresponding-item-hover" ) ;
179
- $ ( $ ( this ) . find ( "div.task-assignment-timeline-content" ) [ 0 ] )
180
- . tooltip ( "hide" ) ;
181
- }
182
- ) ;
183
- } ) ;
184
- }
185
-
186
- setupTaskEventAction ( ) ;
187
- taskTimeline . on ( "rangechanged" , function ( properties ) {
188
- setupTaskEventAction ( ) ;
189
- } ) ;
190
-
191
164
$ ( "span.expand-task-assignment-timeline" ) . click ( function ( ) {
192
165
$ ( "#task-assignment-timeline" ) . toggleClass ( 'collapsed' ) ;
193
166
@@ -197,6 +170,16 @@ function drawTaskAssignmentTimeline(groupArray, eventObjArray, minLaunchTime, zo
197
170
} ) ;
198
171
}
199
172
173
+ function setupTaskEventActionOnMouseOver ( taskIdAndAttempt ) {
174
+ $ ( "#task-" + taskIdAndAttempt ) . addClass ( "corresponding-item-hover" ) ;
175
+ $ ( "#task-event-" + taskIdAndAttempt ) . tooltip ( "show" ) ;
176
+ }
177
+
178
+ function setupTaskEventActionOnMouseOut ( taskIdAndAttempt ) {
179
+ $ ( "#task-" + taskIdAndAttempt ) . removeClass ( "corresponding-item-hover" ) ;
180
+ $ ( "#task-" + taskIdAndAttempt ) . tooltip ( "hide" ) ;
181
+ }
182
+
200
183
function setupExecutorEventAction ( ) {
201
184
$ ( ".item.box.executor" ) . each ( function ( ) {
202
185
$ ( this ) . hover (
@@ -211,15 +194,15 @@ function setupExecutorEventAction() {
211
194
}
212
195
213
196
function setupZoomable ( id , timeline ) {
214
- $ ( id + '>input[type="checkbox"]' ) . click ( function ( ) {
197
+ $ ( id + '> input[type="checkbox"]' ) . click ( function ( ) {
215
198
if ( this . checked ) {
216
199
timeline . setOptions ( { zoomable : true } ) ;
217
200
} else {
218
201
timeline . setOptions ( { zoomable : false } ) ;
219
202
}
220
203
} ) ;
221
204
222
- $ ( id + ">span" ) . click ( function ( ) {
205
+ $ ( id + "> span" ) . click ( function ( ) {
223
206
$ ( this ) . parent ( ) . find ( 'input:checkbox' ) . trigger ( 'click' ) ;
224
207
} ) ;
225
208
}
0 commit comments