From a60b72415eff8a333ee3e7223146255acbaf5064 Mon Sep 17 00:00:00 2001 From: Julen Landa Alustiza Date: Jul 26 2019 11:39:17 +0000 Subject: templates: fix argument on some try_async_comment() calls --- 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 %}