| |
@@ -98,6 +98,7 @@
|
| |
</fieldset>
|
| |
<div>
|
| |
<input type="submit" class="btn btn-primary" value="Commit changes">
|
| |
+ <input type="button" class="btn btn-primary" value="Cancel" id = "discard_changes"/>
|
| |
<input type="button" class="btn btn-secondary pull-md-right"
|
| |
value="Clear" id="clear_comment" />
|
| |
</div>
|
| |
@@ -121,6 +122,12 @@
|
| |
}
|
| |
);
|
| |
|
| |
+ $( "#discard_changes").click(
|
| |
+ function(){
|
| |
+ history.back();
|
| |
+ }
|
| |
+ );
|
| |
+
|
| |
var lbranch = $('#branch').html();
|
| |
|
| |
$("input[name=braction]:radio").change(function (e) {
|
| |
Cancel button was not present in the fork edit
page.This commit adds the cancel button
fucntionality to it.