change topLineAnchor to lineAnchor

This commit is contained in:
John Mitchell 2016-11-11 16:26:27 -05:00 committed by jaredevantabor
parent 3424db7f90
commit 7360e53611
2 changed files with 7 additions and 7 deletions

View File

@ -94,8 +94,8 @@ export default [ 'templateUrl', '$timeout', '$location', '$anchorScroll',
$anchorScroll();
};
scope.topLineAnchor = function() {
$location.hash('topLineAnchor');
scope.lineAnchor = function() {
$location.hash('lineAnchor');
$anchorScroll();
};
@ -128,10 +128,10 @@ export default [ 'templateUrl', '$timeout', '$location', '$anchorScroll',
if (type === 'expand') {
$(".line_num_" + scope.visLine)
.prepend($("#topLineAnchor"));
.prepend($("#lineAnchor"));
} else {
$(".line_num_" + scope.parentVisLine)
.prepend($("#topLineAnchor"));
.prepend($("#lineAnchor"));
}
var expandClass;
@ -145,7 +145,7 @@ export default [ 'templateUrl', '$timeout', '$location', '$anchorScroll',
.each((i, val) => {
$timeout(function(){
angular.element(val).trigger('click');
scope.topLineAnchor();
scope.lineAnchor();
});
});
@ -160,7 +160,7 @@ export default [ 'templateUrl', '$timeout', '$location', '$anchorScroll',
$timeout(function(){
angular.element(val)
.trigger('click');
scope.topLineAnchor();
scope.lineAnchor();
});
}
});

View File

@ -33,7 +33,7 @@
<div class="JobResultsStdOut-stdoutContainer">
<div id="topAnchor"></div>
<div class="JobResultsStdOut-numberColumnPreload"></div>
<div id='topLineAnchor'></div>
<div id='lineAnchor'></div>
<div id="followAnchor"
class="JobResultsStdOut-followAnchor">
<div class="JobResultsStdOut-toTop"