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