mirror of
https://github.com/zulip/zulip.git
synced 2025-11-11 17:36:27 +00:00
Rename functions to show_loading_older/hide_loading_older.
This commit is contained in:
@@ -19,7 +19,7 @@ var load_more_enabled = true;
|
|||||||
|
|
||||||
exports.reset_for_new_narrow = function () {
|
exports.reset_for_new_narrow = function () {
|
||||||
load_more_enabled = true;
|
load_more_enabled = true;
|
||||||
message_scroll.hide_loading_more_messages_indicator();
|
message_scroll.hide_loading_older();
|
||||||
};
|
};
|
||||||
|
|
||||||
function process_result(messages, opts) {
|
function process_result(messages, opts) {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ var exports = {};
|
|||||||
var actively_scrolling = false;
|
var actively_scrolling = false;
|
||||||
|
|
||||||
var loading_more_messages_indicator_showing = false;
|
var loading_more_messages_indicator_showing = false;
|
||||||
exports.show_loading_more_messages_indicator = function () {
|
exports.show_loading_older = function () {
|
||||||
if (! loading_more_messages_indicator_showing) {
|
if (! loading_more_messages_indicator_showing) {
|
||||||
loading.make_indicator($('#loading_more_messages_indicator'),
|
loading.make_indicator($('#loading_more_messages_indicator'),
|
||||||
{abs_positioned: true});
|
{abs_positioned: true});
|
||||||
@@ -14,7 +14,7 @@ exports.show_loading_more_messages_indicator = function () {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.hide_loading_more_messages_indicator = function () {
|
exports.hide_loading_older = function () {
|
||||||
if (loading_more_messages_indicator_showing) {
|
if (loading_more_messages_indicator_showing) {
|
||||||
loading.destroy_indicator($("#loading_more_messages_indicator"));
|
loading.destroy_indicator($("#loading_more_messages_indicator"));
|
||||||
loading_more_messages_indicator_showing = false;
|
loading_more_messages_indicator_showing = false;
|
||||||
@@ -43,8 +43,8 @@ exports.scroll_finished = function () {
|
|||||||
if (message_viewport.at_top()) {
|
if (message_viewport.at_top()) {
|
||||||
message_fetch.maybe_load_older_messages({
|
message_fetch.maybe_load_older_messages({
|
||||||
msg_list: current_msg_list,
|
msg_list: current_msg_list,
|
||||||
show_loading: exports.show_loading_more_messages_indicator,
|
show_loading: exports.show_loading_older,
|
||||||
hide_loading: exports.hide_loading_more_messages_indicator,
|
hide_loading: exports.hide_loading_older,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -234,7 +234,7 @@ exports.activate = function (raw_operators, opts) {
|
|||||||
message_fetch.reset_for_new_narrow();
|
message_fetch.reset_for_new_narrow();
|
||||||
maybe_select_closest();
|
maybe_select_closest();
|
||||||
} else {
|
} else {
|
||||||
message_scroll.show_loading_more_messages_indicator();
|
message_scroll.show_loading_older();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Put the narrow operators in the URL fragment.
|
// Put the narrow operators in the URL fragment.
|
||||||
|
|||||||
Reference in New Issue
Block a user