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

View File

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