Clean up the message we display while bankrupting you.

(imported from commit 007c97eded421a021cd6aefb7f38fe8f4946b26c)
This commit is contained in:
Jessica McKellar
2013-06-19 11:36:48 -04:00
parent e0b109c6ae
commit 24b41351a6
2 changed files with 6 additions and 9 deletions

View File

@@ -1574,7 +1574,11 @@ $(function () {
});
$('#yes-bankrupt').click(function (e) {
fast_forward_pointer(this);
fast_forward_pointer();
$("#yes-bankrupt").hide();
$("#no-bankrupt").hide();
$(this).after($("<div>").addClass("alert alert-info settings_committed")
.text("Bringing you to your latest messages…"));
});
// initialize other stuff

View File

@@ -1205,14 +1205,7 @@ function move_pointer_at_page_top_and_bottom(delta) {
}
}
function fast_forward_pointer(btn) {
btn = $(btn);
btn.attr('disabled', 'disabled');
btn.after($("<div>").addClass("alert alert-info settings_committed")
.text("Working…"));
function fast_forward_pointer() {
$.ajax({
type: 'POST',
url: '/json/get_profile',