mirror of https://github.com/zulip/zulip.git
fb712027bf
This introduces a generic class called list_cursor to handle the main details of navigating the buddy list and wires it into activity.js. It replaces some fairly complicated code that was coupled to stream_list and used lots of jQuery. The new code interacts with the buddy_list API instead of jQuery directly. It also persists the key across redraws, so we don't lose our place when a focus ping happens or we type more characters. Note that we no longer cycle to the top when we hit the bottom, or vice versa. Cycling can be kind of an anti-feature when you want to just lay on the arrow keys until they hit the end. The changes to stream_list.js here do not affect the left sidebar; they only remove code that was used for the right sidebar. |
||
---|---|---|
.. | ||
bugdown_assert.js | ||
finder.js | ||
i18n.js | ||
index.js | ||
mdiff.js | ||
namespace.js | ||
render.js | ||
stub.js | ||
zblueslip.js | ||
zjquery.js |