|
@@ -64,6 +64,7 @@ function refreshComments() {
|
|
|
url: scriptUrlPrefix+'getcomments.php',
|
|
|
success: function(data) {
|
|
|
$('#comments').html(data);
|
|
|
+ addCommentFormSubmitAction();
|
|
|
},
|
|
|
});
|
|
|
}
|
|
@@ -72,7 +73,11 @@ function commentsImageReplace(image) {
|
|
|
$('#comment-id').val(image.id);
|
|
|
}
|
|
|
|
|
|
-$(document).ready(function() {
|
|
|
+function addCommentFormSubmitAction() {
|
|
|
$('#comment-form').on('submit', commentFormSubmit);
|
|
|
+}
|
|
|
+
|
|
|
+$(document).ready(function() {
|
|
|
+ addCommentFormSubmitAction();
|
|
|
});
|
|
|
|