summaryrefslogtreecommitdiff
path: root/modules/comment/js/comment.js
diff options
context:
space:
mode:
authorChad Kieffer <ckieffer@gmail.com>2009-08-28 15:50:52 -0600
committerChad Kieffer <ckieffer@gmail.com>2009-08-28 15:50:52 -0600
commitd1a44af862e08676eaecde62e71597ed1eae85ec (patch)
tree3a7823695fe8faa151fe8f3b7d7f052db9d5eedd /modules/comment/js/comment.js
parentc428e49f3273f04fd220107b4992e6177aa1b265 (diff)
parent31d63a0d0a27212435a78eb38461320f486b5f95 (diff)
Merge branch 'master' of git@github.com:gallery/gallery3
Diffstat (limited to 'modules/comment/js/comment.js')
-rw-r--r--modules/comment/js/comment.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/modules/comment/js/comment.js b/modules/comment/js/comment.js
index 00fc6027..9fd63c1a 100644
--- a/modules/comment/js/comment.js
+++ b/modules/comment/js/comment.js
@@ -1,5 +1,13 @@
$("document").ready(function() {
- ajaxify_comment_form();
+ $("#gAddCommentButton").click(function(event) {
+ event.preventDefault();
+ $.get($(this).attr("href"),
+ {},
+ function(data) {
+ $("#gCommentDetail").append(data);
+ ajaxify_comment_form();
+ });
+ });
});
function ajaxify_comment_form() {