zulip/zproject
Steve Howell 70b7d4c00b Extract compose_state.js.
This is mostly just moving methods out of compose.js.

The variable `is_composing_message`, which isn't a boolean, has
been renamed to `message_type`, and there are new functions
set_message_type() and get_message_type() that wrap it.

This commit removes some shims related to the global variable
`compose_state`; now, `compose_state` is a typical global
variable with a 1:1 relationship with the module by the same
name.

The new module has 100% line coverage, most of it coming
via the tests on compose_actions.js.  (The methods here are
super simple, so it's a good thing that the tests are somewhat
integrated with a higher layer.)
2017-04-18 12:26:58 -07:00
..
jinja2 jinja2: No need for custom render_to_response. 2017-03-17 13:57:34 -07:00
__init__.py Rename Django project to zproject. 2013-08-07 11:04:03 -04:00
backends.py github: Call the appropriate authenticate. 2017-04-17 21:03:08 -07:00
dev_settings.py Add default response for `terms` and `privacy` endpoints. 2017-04-12 14:09:14 -07:00
dev_urls.py dev: Expose coverage and built documentation to web. 2017-03-23 13:10:06 -07:00
legacy_urls.py Migrate json/set_muted_topics to muting/topics. 2017-03-09 20:52:29 -08:00
local_settings.py mypy: Added Dict, List and Set imports. 2017-03-04 14:33:44 -08:00
prod_settings_template.py docs: Update email configuration documentation. 2017-02-22 22:26:43 -08:00
settings.py Extract compose_state.js. 2017-04-18 12:26:58 -07:00
terms.md.template Add TERMS_OF_SERVICE setting. 2016-07-29 20:47:31 -07:00
test_settings.py testing: Use zulip_test_template for backend. 2017-04-14 10:23:31 +05:00
urls.py Add default response for `terms` and `privacy` endpoints. 2017-04-12 14:09:14 -07:00
wsgi.py Django 1.10: Use uWSGI. 2016-12-13 21:40:43 -08:00