directive to markup log in resources

This commit is contained in:
Ako0 2013-08-23 17:06:51 -07:00 коммит произвёл Cameron Dawson
Родитель ba3b614cd9
Коммит 31765243fa
2 изменённых файлов: 9 добавлений и 2 удалений

Просмотреть файл

@ -13,8 +13,6 @@ treeherder.controller('LogviewerCtrl',
}
$scope.displayedStep;
$scope.scrollTo = function(step, linenumber) {
$location.hash('lv-line-'+linenumber);
$anchorScroll();
@ -43,6 +41,11 @@ treeherder.controller('LogviewerCtrl',
// @@@ we should display some kind of "loading" indicator in the
// logs area in case the log is really large
$scope.log_text = $scope.full_log[step.order];
//so that all displayed steps are auto scrolled to top
$timeout(function() {
document.getElementById("lv-log-container").scrollTop = 0;
});
};
$scope.init = function() {

Просмотреть файл

@ -59,7 +59,11 @@
<script src="vendor/angular/angular-resource.js"></script>
<script src="vendor/ui-bootstrap-tpls-0.4.0.js"></script>
<script src="vendor/angular/angular-sanitize.min.js"></script>
<<<<<<< HEAD
<script src="js/config/local.conf.js"></script>
=======
<script src="js/config/sample.local.conf.js"></script>
>>>>>>> directive to markup log in resources
<script src="js/app.js"></script>
<script src="js/services.js"></script>
<script src="js/providers.js"></script>