From 6a93a86c9cd871128670a48d597331ac2215a4c5 Mon Sep 17 00:00:00 2001 From: Thomas Park Date: Mon, 23 Feb 2015 14:06:07 -0500 Subject: prevent default on button clicks --- assets/js/bootswatch.js | 4 ++++ 1 file changed, 4 insertions(+) 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 = $("
< >
").click(function(){ var html = $(this).parent().html(); html = cleanSource(html); -- cgit v1.2.3