zulip/zephyr/static/js
Steve Howell 763782a6f0 Isolate stream_list.js's DOM manipulation when updating unread counts.
This refactoring basically splits off two functions from update_unread_counts(),
which then becomes a simple three-liner.

The function get_unread_counts() is extracted, and it's purely functional
computation.  It paves the way for a more pull-based approach to getting "unread"
counts, where other parts of the program can just call it to get values as
needed without worrying about side effects.  It is staying in zephyr.js for
now.

The other function is stream_list.update_dom_with_unread_counts(), which
has a new home in stream_list.js.  It handles all the DOM manipulation
aspect of unread counts in the left pane, mostly by delegating to smaller
functions within stream_list.  Some of those smaller functions can now
be turned into private methods FWIW, but I'm not sure it's worth the
trouble.

(imported from commit 799f9ebbaed8d530829a4741ef14be04bd8abf5a)
2013-05-14 15:21:27 -04:00
..
activity.js Speed up string comparison for sorting 2013-05-07 11:47:12 -04:00
api.js Rework API documentation to cover all supported calls. 2013-04-18 09:57:56 -07:00
blueslip.js blueslip: Include window.location.href in error reports. 2013-05-01 16:10:35 -04:00
colorspace.js Use white text for recipient labels on streams set to dark colors 2013-02-19 15:33:35 -05:00
common.js Accept any password with at least 6 characters 2013-04-10 18:05:02 -04:00
compose.js Update onboarding checklist on message sends. 2013-05-14 10:27:40 -04:00
composebox_typeahead.js Fix highlighting for stream typeahead in compose box. 2013-05-09 10:35:46 -04:00
debug.js Add utility for profiling iteration constructs 2013-05-09 10:35:47 -04:00
hashchange.js parse_narrow: Handle malformed narrow URLs gracefully. 2013-05-02 15:35:46 -04:00
hotkey.js Fix Pagination when user hits PgUp/PgDn/Space. (ticket 1237) 2013-05-10 15:36:24 -04:00
invite.js invites: correctly focus on the email textarea once the modal is visible. 2013-04-10 16:58:17 -04:00
message_list.js Make within_viewport take the row offset and row height 2013-05-09 10:35:47 -04:00
narrow.js Do narrow-related side-bar manipulation in event handlers 2013-05-07 11:47:13 -04:00
notifications.js Send notifications when a message appears offscreen even if focused. 2013-05-09 10:35:49 -04:00
notifications_bar.js Always-open composebox. 2013-05-09 10:35:46 -04:00
onboarding.js Add onboarding UI functions for displaying and completing setup items. 2013-05-14 10:27:40 -04:00
reload.js Rename message content option to compose.start to content. 2013-04-22 11:14:03 -04:00
rows.js Remove global selected_message_id and persistent_message_id variables 2013-02-21 13:29:17 -05:00
search.js Fix unescaped angle brackets in search typeahead. 2013-05-09 10:35:46 -04:00
settings.js Add interface for creating and viewing bots 2013-05-11 02:38:32 -04:00
setup.js Add a password strength check on the settings page 2013-04-10 18:05:01 -04:00
signup.js Add password strength checks to password reset 2013-04-10 18:05:02 -04:00
stream_list.js Isolate stream_list.js's DOM manipulation when updating unread counts. 2013-05-14 15:21:27 -04:00
subs.js Do stream side-bar manipulation in event handlers 2013-05-09 10:35:46 -04:00
templates.js Append timestamp to URLs when getting templates on dev machines. 2013-04-05 10:38:38 -04:00
timerender.js Do just in time calculation of full date and time for messages 2013-03-05 12:48:33 -05:00
tutorial.js Display onboarding steps, waiting until after the tutorial for new users. 2013-05-14 10:27:40 -04:00
typeahead_helper.js Highlight search typeaheads for private messages 2013-05-09 10:35:46 -04:00
ui.js Put a prominent Feedback icon to the right of your feed. 2013-05-14 13:43:58 -04:00
util.js Only re-render the streams list when the sort order has changed 2013-05-09 10:35:47 -04:00
viewport.js Make viewport a module that caches height and width values 2013-05-09 10:35:47 -04:00
zephyr.js Isolate stream_list.js's DOM manipulation when updating unread counts. 2013-05-14 15:21:27 -04:00