diff --git a/pagure/templates/issue.html b/pagure/templates/issue.html index 754540a..4d26ecb 100644 --- a/pagure/templates/issue.html +++ b/pagure/templates/issue.html @@ -947,7 +947,7 @@ function try_async_comment(form) { form.submit(); return false; } - var _url = form.action + "?js=1"; + var _url = form.attr("action") + "?js=1"; $.post( _url, _data ) .done(function(data) { if(data == 'ok') { diff --git a/pagure/templates/repo_pull_request.html b/pagure/templates/repo_pull_request.html index f2b7644..fe5c738 100644 --- a/pagure/templates/repo_pull_request.html +++ b/pagure/templates/repo_pull_request.html @@ -1181,7 +1181,7 @@ function try_async_comment(form, inline) { set_ui_for_comment(false); return true; } - var _url = form.action; + var _url = form.attr("action"); if (_url.indexOf('?') != -1){ _url += "&js=1"; } else {