# HG changeset patch # User neko259 # Date 2014-04-02 12:40:17 # Node ID 1e58566307007ee942caf688ad6cb050b41f9367 # Parent a441ededbe99e698520a4fde1906f59c6b7ae760 Hide email form row by the JS code. diff --git a/boards/static/js/main.js b/boards/static/js/main.js --- a/boards/static/js/main.js +++ b/boards/static/js/main.js @@ -23,7 +23,17 @@ for the JavaScript code in this page. */ +/** + * An email is a hidden file to prevent spam bots from posting. It has to be + * hidden. + */ +function hideEmailFromForm() { + $('.form-email').parent().parent().hide(); +} + $( document ).ready(function() { + hideEmailFromForm(); + $("a[href='#top']").click(function() { $("html, body").animate({ scrollTop: 0 }, "slow"); return false;