gitlabhq/app/assets/javascripts/graph.js.coffee

11 lines
287 B
CoffeeScript
Raw Normal View History

2012-09-06 13:32:31 +02:00
initGraphNav = ->
$('.graph svg').css 'position', 'relative'
$('body').bind 'keyup', (e) ->
if e.keyCode is 37 # left
$('.graph svg').animate left: '+=400'
else if e.keyCode is 39 # right
$('.graph svg').animate left: '-=400'
window.initGraphNav = initGraphNav