Commit 7dfd5aa6 authored by Kushal Pandya's avatar Kushal Pandya

Use cached element references

parent 5bab7c57
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment