diff --git a/static/js/message_fetch.js b/static/js/message_fetch.js index e7d541338c..cb99d34e43 100644 --- a/static/js/message_fetch.js +++ b/static/js/message_fetch.js @@ -17,7 +17,7 @@ var consts = { // not load_more_messages(). var load_more_enabled = true; -exports.reset_load_more_status = function reset_load_more_status() { +exports.reset_for_new_narrow = function () { load_more_enabled = true; message_scroll.hide_loading_more_messages_indicator(); }; diff --git a/static/js/narrow.js b/static/js/narrow.js index 37519b0894..94aa5502b5 100644 --- a/static/js/narrow.js +++ b/static/js/narrow.js @@ -220,7 +220,7 @@ exports.activate = function (raw_operators, opts) { msg_list: message_list.narrowed, use_first_unread_anchor: opts.use_initial_narrow_pointer, cont: function () { - message_fetch.reset_load_more_status(); + message_fetch.reset_for_new_narrow(); if (defer_selecting_closest) { maybe_select_closest(); } @@ -231,7 +231,7 @@ exports.activate = function (raw_operators, opts) { }); if (! defer_selecting_closest) { - message_fetch.reset_load_more_status(); + message_fetch.reset_for_new_narrow(); maybe_select_closest(); } else { message_scroll.show_loading_more_messages_indicator(); @@ -465,7 +465,7 @@ exports.deactivate = function () { condense.condense_and_collapse($("#zhome tr.message_row")); $('#search_query').val(''); - message_fetch.reset_load_more_status(); + message_fetch.reset_for_new_narrow(); hashchange.save_narrow(); if (current_msg_list.selected_id() !== -1) {