gitlabhq/app/assets/javascripts/snippets.js.coffee
2012-09-06 04:51:42 -07:00

7 lines
203 B
CoffeeScript

$ ->
$('#snippets-table .snippet').live 'click', (e) ->
if e.target.nodeName isnt 'A' and e.target.nodeName isnt 'INPUT'
location.href = $(@).attr 'url'
e.stopPropagation()
false