summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChad Kieffer <chad@2tbsp.com>2008-11-23 20:17:02 +0000
committerChad Kieffer <chad@2tbsp.com>2008-11-23 20:17:02 +0000
commit9139872c8deea2cc52b4be31152f74b66c8c8f9c (patch)
treed7d7f56c8b37c5efb643a3e4ab5e0c75d1762263
parent3728136fced923b96dbf733e6098b6d6961f06fb (diff)
When removing #gCommentForm I forgot to update the jQuery selectors used here. In place commenting works again.
-rw-r--r--themes/default/js/comment.js10
1 files changed, 5 insertions, 5 deletions
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();
}