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