From c9a7e981119152bca6b13d84f97311be010eef8e Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Nov 28 2014 11:39:02 +0000 Subject: Add button and logic to clear the comment input field --- diff --git a/progit/templates/issue.html b/progit/templates/issue.html index d332adf..5dff76a 100644 --- a/progit/templates/issue.html +++ b/progit/templates/issue.html @@ -78,6 +78,7 @@
+
@@ -132,6 +133,12 @@ $(function() { } ); + $( "#clear_comment").click( + function() { + $( "#comment" ).val(""); + } + ); + }); {% endblock %}