From 63c697020762553a9b124a1a22478d31089f84b7 Mon Sep 17 00:00:00 2001 From: Dylan Lloyd Date: Thu, 10 Mar 2011 05:03:49 -0500 Subject: [PATCH 1/1] Fixed link error with new post display --- includes/ajax.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/includes/ajax.js b/includes/ajax.js index bc51be3..6946a07 100644 --- a/includes/ajax.js +++ b/includes/ajax.js @@ -27,9 +27,14 @@ $(document).ready(function() { url: "verify", data: comment_data, success: function() { - var new_post = "

" + name + "

" - + text + "

"; + if (email != '') { + var new_post = "

" + name + "

" + + text + "

"; + } else { + var new_post = "

" + name + "

" + + text + "

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