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

7 lines
203 B
CoffeeScript
Raw Normal View History

2012-09-06 13:51:42 +02:00
$ ->
$('#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