From 2b28e62cd5a81a8c489b4fc056f1c45960cf4963 Mon Sep 17 00:00:00 2001 From: shivani Date: Aug 07 2017 18:45:25 +0000 Subject: Scroll to the comment section on clicking reply. Merges https://pagure.io/pagure/pull-request/2449 --- diff --git a/pagure/templates/issue.html b/pagure/templates/issue.html index 5418ef2..09ad897 100644 --- a/pagure/templates/issue.html +++ b/pagure/templates/issue.html @@ -568,7 +568,11 @@ function setup_reply_btns() { } $( "#comment" ).val(_output.join("\n")); } - ); + ).click(function(){ + $('html, body').animate({ + scrollTop: $("#comment").offset().top + }, 2000); +}); }; $(document).ready(function() {