X-Git-Url: https://disinclined.org/git/?a=blobdiff_plain;f=includes%2Fajax.js;h=10d532d3311ea3cfcce986863f71a3eadc59fe35;hb=9412c7a558398a5a990691eb74cc61ae24d85031;hp=2bc9ccef6f116653aa8093672e6a9353f61d4574;hpb=6800ac4d1b7c2090630a149d1b9789679d338911;p=dylansserver.git 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; });