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',