Added return false on clicks for calculator

This commit is contained in:
Kyle Fiedler
2012-03-22 16:37:29 -04:00
parent 3512df424e
commit e81bc425cb

View File

@@ -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")},