mirror of
https://github.com/ansible/awx.git
synced 2026-01-27 08:31:28 -03:30
change topLineAnchor to lineAnchor
This commit is contained in:
parent
3424db7f90
commit
7360e53611
@ -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();
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user