From 9139872c8deea2cc52b4be31152f74b66c8c8f9c Mon Sep 17 00:00:00 2001 From: Chad Kieffer Date: Sun, 23 Nov 2008 20:17:02 +0000 Subject: When removing #gCommentForm I forgot to update the jQuery selectors used here. In place commenting works again. --- themes/default/js/comment.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'themes/default/js/comment.js') diff --git a/themes/default/js/comment.js b/themes/default/js/comment.js index f88f21e5..60e885fb 100644 --- a/themes/default/js/comment.js +++ b/themes/default/js/comment.js @@ -3,15 +3,15 @@ $("document").ready(function() { }); function ajaxify_comment_form() { - $("#gCommentForm").ajaxForm({ + $("#gComments form").ajaxForm({ complete: function(xhr, statusText) { - $("#gCommentForm").replaceWith(xhr.responseText); + $("#gComments form").replaceWith(xhr.responseText); if (xhr.status == 201) { $.get(xhr.getResponseHeader("Location"), function(data, textStatus) { - $("#gComment div.gBlockContent ul:first").append(data); - $("#gComment div.gBlockContent ul:first li:last").hide().slideDown(); + $("#gComments div.gBlockContent ul:first").append(data); + $("#gComments div.gBlockContent ul:first li:last").hide().slideDown(); }); - $("#gCommentForm").clearForm(); + $("#gComments form").clearForm(); } ajaxify_comment_form(); } -- cgit v1.2.3