mirror of
https://github.com/ansible/awx.git
synced 2026-05-19 14:57:39 -02:30
change topLineAnchor to lineAnchor
This commit is contained in:
committed by
jaredevantabor
parent
3424db7f90
commit
7360e53611
@@ -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();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user