gitlabhq/app/assets/javascripts/snippets.js

10 lines
262 B
JavaScript
Raw Normal View History

2011-10-21 19:04:41 +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;
}
});
});