Revert "Bug 1184311 - Get classification looping correctly again with 1st/last pinned"

This reverts commit 93b5c9e0b5.
This commit is contained in:
Cameron Dawson 2015-07-16 10:15:10 -07:00
Родитель 527cfaf654
Коммит 55c316314b
2 изменённых файлов: 5 добавлений и 15 удалений

Просмотреть файл

@ -75,17 +75,7 @@ treeherder.directive('thCloneJobs', [
};
}
// Filter the list of possible jobs down to ONLY ones in the .th-view-content
// div (excluding pinboard) and then to the specific selector passed
// in. And then to only VISIBLE (not filtered away) jobs. The exception
// is for the .selected-job. If that's not visible, we still want to
// include it, because it is the anchor from which we find
// the next/previous job.
//
// The .selected-job can be invisible, for instance, when filtered to
// unclassified failures only, and you then classify the selected job.
// It's still selected, but no longer visible.
jobs = $(".th-view-content").filter(jobNavSelector.selector).filter(":visible, .selected-job");
jobs = $(jobNavSelector.selector).filter(":visible, .selected-job");
if (jobs.length) {
var selIdx = jobs.index(jobs.filter(".selected-job"));
var idx = getIndex(selIdx, jobs);

Просмотреть файл

@ -151,14 +151,14 @@ treeherder.value("thJobNavSelectors",
{
ALL_JOBS: {
name: "jobs",
selector: ".job-btn"
selector: ".th-view-content .job-btn"
},
UNCLASSIFIED_FAILURES: {
name: "unclassified failures",
selector: ".selected-job, " +
".job-btn.btn-red, " +
".job-btn.btn-orange, " +
".job-btn.btn-purple"
".th-view-content .job-btn.btn-red, " +
".th-view-content .job-btn.btn-orange, " +
".th-view-content .job-btn.btn-purple"
}
}
);