gitlabhq/app/assets/javascripts/snippets.js
2011-10-17 00:07:10 +03:00

10 lines
262 B
JavaScript

$(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;
}
});
});