Skip to content

Commit

Permalink
Merge pull request #34 from ComputerScienceHouse/mario_kart
Browse files Browse the repository at this point in the history
Fix packet signing race condition (#33)
  • Loading branch information
devinmatte authored Sep 3, 2018
2 parents e48c00a + a63a2cf commit 0e0f292
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 0e0f292

Please sign in to comment.