From 040c6e940059bc814800b33f9b3b6378b11dbd62 Mon Sep 17 00:00:00 2001 From: Julen Landa Alustiza Date: Jul 02 2019 06:00:42 +0000 Subject: repo_pull_request: fix form action getting for jquery3 --- 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 {