gitlab-org--gitlab-foss/app/assets/javascripts/snippets.js

10 lines
262 B
JavaScript
Raw Normal View History

2011-10-16 17:07:10 -04:00
$(document).ready(function(){
$("#snippets-table .snippet").live('click', function(e){
if(e.target.nodeName != "A" && e.target.nodeName != "INPUT") {
location.href = $(this).attr("url");
e.stopPropagation();
return false;
}
});
});