зеркало из https://github.com/mozilla/treeherder.git
Bug 1192199 - Return a correct line count for logviewer navigation
This commit is contained in:
Родитель
aa422df16e
Коммит
8cc59fec30
|
@ -100,7 +100,6 @@ logViewerApp.controller('LogviewerCtrl', [
|
|||
LogSlice.get_line_range(lineRangeParams, {
|
||||
buffer_size: LINE_BUFFER_SIZE
|
||||
}).then(function(data) {
|
||||
var slicedData, length;
|
||||
|
||||
drawErrorLines(data);
|
||||
|
||||
|
@ -247,7 +246,7 @@ logViewerApp.controller('LogviewerCtrl', [
|
|||
|
||||
function logFileLineCount () {
|
||||
var steps = $scope.artifact.step_data.steps;
|
||||
return steps[ steps.length - 1 ].finished_linenumber;
|
||||
return steps[ steps.length - 1 ].finished_linenumber + 1;
|
||||
}
|
||||
|
||||
function moveLineNumber (bounds) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче