Skip to content
Snippets Groups Projects
Commit b065c1f0 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Merge pull request #28 from jojosch/coffeescript

convert javascript to coffeescript
parents bbe68a96 2dde5fa5
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