From: Dylan Lloyd Date: Thu, 10 Mar 2011 09:17:53 +0000 (-0500) Subject: Got rid of console.log()s and improved formatting X-Git-Url: https://disinclined.org/git/?a=commitdiff_plain;h=9412c7a558398a5a990691eb74cc61ae24d85031;p=dylansserver.git Got rid of console.log()s and improved formatting --- diff --git a/includes/ajax.js b/includes/ajax.js index 2bc9cce..10d532d 100644 --- a/includes/ajax.js +++ b/includes/ajax.js @@ -35,7 +35,8 @@ $(document).ready(function() { } }); } else { - console.log('reCAPTCHA said you\'re not human.'); + var error = "reCAPTCHA said you're not human"; + $('#comment').append(error); } }, error: function() { @@ -46,7 +47,8 @@ $(document).ready(function() { } }); } else { - console.log('but you didn\'t write anything!'); + var error = "but you didn't write anything!
"; + $('#submit').before(error); } return false; }); diff --git a/index.php b/index.php index b773705..56b216a 100644 --- a/index.php +++ b/index.php @@ -489,13 +489,13 @@ END_OF_FORM; if ($this->failed_captcha) { echo <<reCAPTCHA said you're not human, - + END_OF_FORM; } else { echo << + END_OF_FORM;