mirror of
https://github.com/zulip/zulip.git
synced 2025-11-07 07:23:22 +00:00
Clean up the message we display while bankrupting you.
(imported from commit 007c97eded421a021cd6aefb7f38fe8f4946b26c)
This commit is contained in:
@@ -1574,7 +1574,11 @@ $(function () {
|
|||||||
});
|
});
|
||||||
|
|
||||||
$('#yes-bankrupt').click(function (e) {
|
$('#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
|
// initialize other stuff
|
||||||
|
|||||||
@@ -1205,14 +1205,7 @@ function move_pointer_at_page_top_and_bottom(delta) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function fast_forward_pointer(btn) {
|
function fast_forward_pointer() {
|
||||||
btn = $(btn);
|
|
||||||
|
|
||||||
btn.attr('disabled', 'disabled');
|
|
||||||
|
|
||||||
btn.after($("<div>").addClass("alert alert-info settings_committed")
|
|
||||||
.text("Working…"));
|
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'POST',
|
type: 'POST',
|
||||||
url: '/json/get_profile',
|
url: '/json/get_profile',
|
||||||
|
|||||||
Reference in New Issue
Block a user