From 42eef2ae7c4778d5180b239cf832807ae4fdaa2b Mon Sep 17 00:00:00 2001 From: shivani Date: Feb 19 2017 08:13:08 +0000 Subject: Add cancel button in fork edit view. Cancel button was not present in the fork edit page.This commit adds the cancel button fucntionality to it. --- diff --git a/pagure/templates/edit_file.html b/pagure/templates/edit_file.html index 62b67e0..cc51d5f 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) {