bankruptcy: Fix clicking outside bankruptcy modal.

Previously, this would leave the unread UI disabled forever, showing 0
unread counts for anything, which was a super confusing failure mode.
This commit is contained in:
Tim Abbott
2017-03-22 20:48:37 -07:00
parent 977e7b0fdc
commit 61e6ed8c31

View File

@@ -94,7 +94,8 @@ function consider_bankruptcy() {
}
exports.initialize = function initialize() {
$(".bankruptcy_button").click(function () {
// No matter how the bankruptcy modal is closed, show unread counts after.
$("#bankruptcy").on("hide", function () {
unread_ui.enable();
});