zulip/zproject
Steve Howell dd0c50f0df Extract compose_actions.js.
This module extracts these two functions that get called by
several other modules:

    start()
    cancel()

It is a little bit arbitrary which functions got pulled over
with them, but it's generally functions that would have only
been called via start/cancel.

There are two goals for splitting out this code.  The first
goal is simply to make `compose.js` have fewer responsibilities.
The second goal is to help break up circular dependencies.
The extraction of this module does more to clarify
dependencies than actually break them.  The methods start()
and cancel() had actually been shimmed in an earlier commit,
and now they no longer have a shim.

Besides start/cancel, most of the functions here are only
exported to facilitate test stubbing.  An exception is
decorate_stream_bar(), which is currently called from
ui_init.js.  We probably should move the "blur" handler out
of there, but cleaning up ui_init.js is a project for another
day.

It may seem slightly odd that this commit doesn't pull over
finish() into this module, but finish() would bring in the
whole send-message codepath.  You can think of it like this:

* compose_actions basically just populates the compose box
* compose.finish() makes the compose box do its real job,
  which is to send a message
2017-04-14 13:09:19 -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: Go to registration if email is invalid. 2017-04-04 18:03:33 -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_actions.js. 2017-04-14 13:09:19 -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