X-Git-Url: https://disinclined.org/git/?a=blobdiff_plain;f=includes%2Fajax.js;h=2bc9ccef6f116653aa8093672e6a9353f61d4574;hb=6800ac4d1b7c2090630a149d1b9789679d338911;hp=50541dc89aa70b782593de2d6759e876da2eeb06;hpb=409920abbe043085f168136e85344a5d28542163;p=dylansserver.git diff --git a/includes/ajax.js b/includes/ajax.js index 50541dc..2bc9cce 100644 --- a/includes/ajax.js +++ b/includes/ajax.js @@ -1,4 +1,5 @@ $(document).ready(function() { + $('#recaptcha_widget').show(); $('.submit').click(function() { if ($('#comment_text').val() != '') { var challenge = Recaptcha.get_challenge(); @@ -25,6 +26,11 @@ $(document).ready(function() { url: "verify", data: comment_data, success: function() { + var new_post = "

" + name + "

" + + text + "

"; + $('#comments').prepend(new_post); + $('#comment').hide(); console.log('posted new comment'); } });