diff options
author | Thomas Park <thomas@thomaspark.me> | 2015-02-23 14:06:07 -0500 |
---|---|---|
committer | Thomas Park <thomas@thomaspark.me> | 2015-02-23 14:06:07 -0500 |
commit | 6a93a86c9cd871128670a48d597331ac2215a4c5 (patch) | |
tree | b92457322bc2e2a6658b813665250fbb611af150 | |
parent | 574c4e6bdbf013552bab312e4327d6b5f8ed2850 (diff) |
prevent default on button clicks
-rw-r--r-- | assets/js/bootswatch.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/assets/js/bootswatch.js b/assets/js/bootswatch.js index 9a32eee5..cc6ca998 100644 --- a/assets/js/bootswatch.js +++ b/assets/js/bootswatch.js @@ -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'>< ></div>").click(function(){ var html = $(this).parent().html(); html = cleanSource(html); |