From ebc5fe73c701e47bd806077ae7cdfceb82e08270 Mon Sep 17 00:00:00 2001 From: shivani Date: Feb 23 2017 14:09:15 +0000 Subject: Add Cancel button to the fork edit view. Cancel button was not present in the fork edit page. This commit adds the cancel button functionality to it. --- diff --git a/pagure/templates/edit_file.html b/pagure/templates/edit_file.html index 62b67e0..a2028b9 100644 --- a/pagure/templates/edit_file.html +++ b/pagure/templates/edit_file.html @@ -98,6 +98,7 @@
+
@@ -121,6 +122,12 @@ $( "#clear_comment").click( } ); +$( "#discard_changes" ).click( + function(){ + history.back(); + } +); + var lbranch = $('#branch').html(); $("input[name=braction]:radio").change(function (e) {