From 24b41351a61b38400bcd1314cba666b2d3679f2a Mon Sep 17 00:00:00 2001 From: Jessica McKellar Date: Wed, 19 Jun 2013 11:36:48 -0400 Subject: [PATCH] Clean up the message we display while bankrupting you. (imported from commit 007c97eded421a021cd6aefb7f38fe8f4946b26c) --- zephyr/static/js/ui.js | 6 +++++- zephyr/static/js/zephyr.js | 9 +-------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/zephyr/static/js/ui.js b/zephyr/static/js/ui.js index dc064f03ce..9a0163e4eb 100644 --- a/zephyr/static/js/ui.js +++ b/zephyr/static/js/ui.js @@ -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($("
").addClass("alert alert-info settings_committed") + .text("Bringing you to your latest messages…")); }); // initialize other stuff diff --git a/zephyr/static/js/zephyr.js b/zephyr/static/js/zephyr.js index 753c1f54c7..cc9c1f4f70 100644 --- a/zephyr/static/js/zephyr.js +++ b/zephyr/static/js/zephyr.js @@ -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($("
").addClass("alert alert-info settings_committed") - .text("Working…")); - +function fast_forward_pointer() { $.ajax({ type: 'POST', url: '/json/get_profile',