From: Dylan Lloyd Date: Thu, 10 Mar 2011 10:03:49 +0000 (-0500) Subject: Fixed link error with new post display X-Git-Url: https://disinclined.org/git/?a=commitdiff_plain;h=63c697020762553a9b124a1a22478d31089f84b7;p=dylansserver.git Fixed link error with new post display --- 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');