Zulip 服务器和 Web 应用程序。开源团队聊天可帮助团队保持高效和专注。
Go to file
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
api Implement Humbug SVN integration. 2013-05-01 11:37:07 -07:00
assets favicon: Add an 'infinite' favicon for more than 99 messages 2013-02-15 16:18:24 -05:00
bots Fix use of logging instead of logger 2013-05-09 13:50:21 -04:00
certs Add wildcard certificate for *.e.humbughq.com. 2013-01-17 18:56:39 -05:00
confirmation [third]: Accept and pass along gafyd_name parameters to confirmation templates. 2013-04-24 12:03:41 -07:00
humbug Enumerate onboarding steps client-side, and give a way to update them. 2013-05-14 10:27:39 -04:00
node_modules Import Handlebars compiler and dependencies 2013-04-02 14:43:58 -04:00
servers check_user_zephyr_mirror_liveness: Fix query for new API. 2013-05-10 10:46:49 -04:00
templates Put a prominent Feedback icon to the right of your feed. 2013-05-14 13:43:58 -04:00
tools Call process_loaded_for_unread() more directly. 2013-05-14 15:21:27 -04:00
zephyr Isolate stream_list.js's DOM manipulation when updating unread counts. 2013-05-14 15:21:27 -04:00
.gitignore gitignore: Add .DS_Store 2013-02-06 16:31:55 -05:00
manage.py chmod +x manage.py 2012-10-25 15:22:18 -04:00