Skip to content

Commit

Permalink
Fix packet signing race condition (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenmirabito committed Sep 3, 2018
1 parent e48c00a commit a63a2cf
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packet/static/js/signing.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ $(document).ready(function () {
$('.sign-button').click(function () {
var packetData = $(this).get(0).dataset;
var userData = $("#userInfo").val();
console.log(userData);
swal({
title: "Are you sure?",
text: "Once a packet is signed it can only be unsigned from request to the Evals Director",
Expand All @@ -19,10 +18,12 @@ $(document).ready(function () {
success: function (data) {
swal("Congratulations or I'm Sorry\nYou've signed " + packetData.freshman_name + "'s packet", {
icon: "success",
});
})
.then(() => {
location.reload();
});
}
});
location.reload();
}
});
});
Expand Down

0 comments on commit a63a2cf

Please sign in to comment.