Prevent resize operations from trying to access the reply() tutorial after the tutorial has finished

I had to move a function to prevent linter errors

(imported from commit 7634bd7d29ca2d204d17566f166ce9d580aaac4b)
This commit is contained in:
acrefoot 2014-03-14 11:37:33 -04:00 committed by Leo Franchi
parent e5467d3268
commit c69f1dae3f
1 changed files with 5 additions and 4 deletions

View File

@ -315,6 +315,10 @@ exports.defer = function (callback) {
deferred_work.push(callback);
};
function update_popover_info(popover_func) {
current_popover_info = popover_func;
}
function finale() {
var finale_modal = $("#tutorial-finale");
$(".screen").css({opacity: 0.0});
@ -331,6 +335,7 @@ function finale() {
set_tutorial_status("finished");
is_running = false;
current_msg_list.clear();
update_popover_info(undefined);
// Force a check on new events before we re-render the message list.
server_events.force_get_events();
stream_color.default_color = real_default_color;
@ -386,10 +391,6 @@ function finale() {
}
}
function update_popover_info(popover_func) {
current_popover_info = popover_func;
}
function box_first_message() {
var spotlight_message = rows.first_visible();
var bar = rows.get_message_recipient_row(spotlight_message);