mirror of
https://github.com/zulip/zulip.git
synced 2025-11-15 03:11:54 +00:00
subs: Use single jquery-handlers for multiple events.
Rather than defining two different jquery event-handlers for two different events, we can use a single jquery handler as the function is the same for both handlers.
This commit is contained in:
committed by
Tim Abbott
parent
84fd0b0974
commit
16abd7ec96
@@ -241,10 +241,7 @@ exports.update_rendered_message_groups = function (message_groups, get_element)
|
||||
};
|
||||
|
||||
exports.initialize = function () {
|
||||
$(document).on('peer_subscribe.zulip', function () {
|
||||
exports.update_faded_users();
|
||||
});
|
||||
$(document).on('peer_unsubscribe.zulip', function () {
|
||||
$(document).on('peer_subscribe.zulip peer_unsubscribe.zulip', function () {
|
||||
exports.update_faded_users();
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user