From e81bc425cb817639fd8309ad0bf0d30c5475f060 Mon Sep 17 00:00:00 2001 From: Kyle Fiedler Date: Thu, 22 Mar 2012 16:37:29 -0400 Subject: [PATCH] Added return false on clicks for calculator --- templates/main.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/templates/main.html b/templates/main.html index 4101094f30..07e1d75695 100644 --- a/templates/main.html +++ b/templates/main.html @@ -137,12 +137,17 @@ $(function() { $("#calculator_wrapper").slideToggle("fast"); $("#calculator_wrapper #calculator_input").focus(); $(this).toggleClass("closed"); + return false; }); $("div.help-wrapper a").hover(function(){ $(".help").toggleClass("shown"); + }); + $("div.help-wrapper a").click(function(){ + return false; + }); $("form#calculator").submit(function(e){ e.preventDefault(); $.getJSON("/calculate", {"equation":$("#calculator_input").attr("value")},