Skip to content

Commit

Permalink
prevent default on button clicks
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaspark committed Feb 23, 2015
1 parent 574c4e6 commit 6a93a86
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions assets/js/bootswatch.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
$('#home > .navbar').addClass('navbar-transparent');
});

$("a[href='#'").click(function(e) {
e.preventDefault();
});

var $button = $("<div id='source-button' class='btn btn-primary btn-xs'>&lt; &gt;</div>").click(function(){
var html = $(this).parent().html();
html = cleanSource(html);
Expand Down

0 comments on commit 6a93a86

Please sign in to comment.