Skip to content
Snippets Groups Projects
Commit 2dde5fa5 authored by Johannes Schleifenbaum's avatar Johannes Schleifenbaum
Browse files

convert javascript to coffeescript

parent bbe68a96
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -14,15 +14,3 @@
//= require jquery_ujs
//= require_tree .
//
function getBuild(buildPath, buildId) {
console.log('run');
setTimeout(function() {
$.get(buildPath + ".js?bid=" + buildId);
}, 3000);
}
function checkAutoscroll() {
if('enabled' === $("#autoscroll-button").data('state')) {
$("html,body").scrollTop($("#build-trace").height());
}
}
Loading
Loading
@@ -7,3 +7,13 @@ $(document).ready ->
else
$(this).data "state", "enabled"
$(this).text "disable autoscroll"
@getBuild = (buildPath, buildId) ->
console.log "run"
setTimeout (->
$.get buildPath + ".js?bid=" + buildId
), 3000
@checkAutoscroll = ->
$("html,body").scrollTop $("#build-trace").height() if "enabled" is $("#autoscroll-button").data("state")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment