Skip to content

Commit

Permalink
fix two bugs with failed coin deposits
Browse files Browse the repository at this point in the history
  • Loading branch information
bradjc committed May 15, 2016
1 parent 9d04db9 commit f612744
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion chezbetty/static/js/chezbetty-terminal.js
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,13 @@ function deposit_success (data) {

if ("error" in data) {
deposit_alert_error(data.error);
enable_button($(".btn-submit-deposit"));
enable_button($("#btn-confirm-deposit-yes"));

$("#deposit-main").hide();
$("#deposit-verify").hide();
$("#deposit-counting").hide();
$("#deposit-complete").hide();
$("#deposit-coins").show();
} else {
// On successful deposit, we switch to the frame that shows
// the successful deposit.
Expand Down Expand Up @@ -808,6 +814,8 @@ $("#btn-confirm-deposit-yes").click(function () {
$("#btn-confirm-deposit-no").click(function () {
$("#deposit-verify").hide();
$("#deposit-coins").show();

enable_button($("#btn-confirm-deposit-yes"));
});

// Button press handler for the default deposit amount buttons
Expand Down

0 comments on commit f612744

Please sign in to comment.