gitlabhq/app/assets/javascripts/snippets.js

10 lines
262 B
JavaScript
Raw Normal View History

2011-10-16 23:07:10 +02: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;
}
});
});