diff options
author | Kushal Pandya <kushal@gitlab.com> | 2016-12-21 13:10:35 +0530 |
---|---|---|
committer | Kushal Pandya <kushal@gitlab.com> | 2016-12-21 13:16:18 +0530 |
commit | 7dfd5aa69ed0db0157b475973ffcea592098267a (patch) | |
tree | 52cca8f3d4735b0e3d40bcb0eb5828744397a52b /app | |
parent | 5bab7c57e3e108d603ceb41c53091ebfb027a37e (diff) | |
download | gitlab-ce-7dfd5aa69ed0db0157b475973ffcea592098267a.tar.gz |
Use cached element references
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/build.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/build.js b/app/assets/javascripts/build.js index eeafe436d6c..c9230a2d090 100644 --- a/app/assets/javascripts/build.js +++ b/app/assets/javascripts/build.js @@ -124,8 +124,8 @@ }; Build.prototype.checkAutoscroll = function() { - if ($("#autoscroll-status").data("state") === "enabled") { - return $("html,body").scrollTop($("#build-trace").height()); + if (this.$autoScrollStatus.data("state") === "enabled") { + return $("html,body").scrollTop(this.$buildTrace.height()); } // Handle a situation where user started new build |