Files
zulip/static/js/list_util.js
Steve Howell 43e5b2d28b right sidebar: Remove "GROUP PMs" section.
We remove the "GROUP PMs" section that used
to be in the lower right sidebar.

Most of this is straightforward code removal.

A couple quick notes:

    - The message fetching code now just
      calls `huddle_data.process_loaded_messages`,
      which we still need for search suggestions.
      We removed `activity.process_loaded_messages`.

    - The `huddle_data.process_loaded_messages`
      function no longer needs to return `need_resize`.

    - In `resize.js` we now just calculate
      `res.buddy_list_wrapper_max_height` directly
      from `usable_height`.
2020-05-27 17:57:50 -07:00

20 lines
522 B
JavaScript

const list_selectors = ["#stream_filters", "#global_filters", "#user_presences"];
exports.inside_list = function (e) {
const $target = $(e.target);
const in_list = $target.closest(list_selectors.join(", ")).length > 0;
return in_list;
};
exports.go_down = function (e) {
const $target = $(e.target);
$target.closest("li").next().find("a").focus();
};
exports.go_up = function (e) {
const $target = $(e.target);
$target.closest("li").prev().find("a").focus();
};
window.list_util = exports;