diff --git a/pagure/templates/issue.html b/pagure/templates/issue.html
index 4d26ecb..f89fd51 100644
--- a/pagure/templates/issue.html
+++ b/pagure/templates/issue.html
@@ -674,7 +674,7 @@ $(document).ready(function() {
});
$('.mainform').submit(function() {
- return try_async_comment(this);
+ return try_async_comment($(this));
});
$('.mainform #assignee').selectize({
diff --git a/pagure/templates/repo_master.html b/pagure/templates/repo_master.html
index 3603d1d..ab64a1b 100644
--- a/pagure/templates/repo_master.html
+++ b/pagure/templates/repo_master.html
@@ -432,7 +432,7 @@ $("#pr-button").one("click",
);
$('.pr_comment_form').submit(function() {
- return try_async_comment(this, null);
+ return try_async_comment($(this), null);
});
{% endif %}
diff --git a/pagure/templates/repo_pull_request.html b/pagure/templates/repo_pull_request.html
index f6529ce..0929a16 100644
--- a/pagure/templates/repo_pull_request.html
+++ b/pagure/templates/repo_pull_request.html
@@ -1285,7 +1285,7 @@ function try_async_comment(form, inline) {
};
$(".add_comment_form").submit(function(event) {
- return try_async_comment(this, true);
+ return try_async_comment($(this), true);
})
{% endif %}