From 9412c7a558398a5a990691eb74cc61ae24d85031 Mon Sep 17 00:00:00 2001 From: Dylan Lloyd Date: Thu, 10 Mar 2011 04:17:53 -0500 Subject: [PATCH] Got rid of console.log()s and improved formatting --- includes/ajax.js | 6 ++++-- index.php | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) 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; -- 2.30.2