From b9cec72ac4f81df0a53b583af61ab72178c03659 Mon Sep 17 00:00:00 2001 From: Julen Landa Alustiza Date: Jul 10 2019 19:16:59 +0000 Subject: [PATCH 1/2] use button instead of a for comment reply button --- diff --git a/pagure/static/issue_ev.js b/pagure/static/issue_ev.js index 6f7b41f..ff0c32e 100644 --- a/pagure/static/issue_ev.js +++ b/pagure/static/issue_ev.js @@ -162,7 +162,7 @@ add_comment = function(data, username) { + '
' + '
' + '
' - + ' ' + ' ' + ' '; diff --git a/pagure/templates/_formhelper.html b/pagure/templates/_formhelper.html index 8bdd299..a4248e2 100644 --- a/pagure/templates/_formhelper.html +++ b/pagure/templates/_formhelper.html @@ -159,10 +159,9 @@ {% if g.fas_user %} - + {% endif %} {% if id != 0 and g.fas_user and (g.repo_committer or ( comment.parent.status in [True, 'Open'] From 5daf248e693122860fbabd8ccdcc7b5705ae7784 Mon Sep 17 00:00:00 2001 From: Julen Landa Alustiza Date: Jul 10 2019 19:16:59 +0000 Subject: [PATCH 2/2] comment reply: add some newlines on reply action allowing direct typing after clicking it --- diff --git a/pagure/templates/repo_pull_request.html b/pagure/templates/repo_pull_request.html index e192afa..e3edf05 100644 --- a/pagure/templates/repo_pull_request.html +++ b/pagure/templates/repo_pull_request.html @@ -818,7 +818,7 @@ function setup_reply_btns() { if (_prev.length > 0){ _prev += "\n\n"; } - $( "#comment" ).val(_prev + _output.join("\n")); + $( "#comment" ).val(_prev + _output.join("\n") + "\n\n"); $( "#comment" ).focus(); } );