From 7360e536112860e0393f61a5c76ee6e715329900 Mon Sep 17 00:00:00 2001 From: John Mitchell Date: Fri, 11 Nov 2016 16:26:27 -0500 Subject: [PATCH] change topLineAnchor to lineAnchor --- .../job-results-stdout.directive.js | 12 ++++++------ .../job-results-stdout.partial.html | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/awx/ui/client/src/job-results/job-results-stdout/job-results-stdout.directive.js b/awx/ui/client/src/job-results/job-results-stdout/job-results-stdout.directive.js index e3ac48ebd3..aa31b6da9a 100644 --- a/awx/ui/client/src/job-results/job-results-stdout/job-results-stdout.directive.js +++ b/awx/ui/client/src/job-results/job-results-stdout/job-results-stdout.directive.js @@ -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(); }); } }); diff --git a/awx/ui/client/src/job-results/job-results-stdout/job-results-stdout.partial.html b/awx/ui/client/src/job-results/job-results-stdout/job-results-stdout.partial.html index 85e8ccc8e3..147181eb48 100644 --- a/awx/ui/client/src/job-results/job-results-stdout/job-results-stdout.partial.html +++ b/awx/ui/client/src/job-results/job-results-stdout/job-results-stdout.partial.html @@ -33,7 +33,7 @@
-
+