subject -> topic: Rename compose fields.

The stream/topic edit areas now have these ids:

        #stream_message_recipient_stream
        #stream_message_recipient_topic

They are pretty verbose, but being able to grep
for these without noise does have some value.
This commit is contained in:
Steve Howell
2018-11-13 16:16:02 +00:00
committed by Tim Abbott
parent ba46dc83c6
commit d7c2577ffb
17 changed files with 118 additions and 79 deletions

View File

@@ -40,8 +40,8 @@ function get_or_set(fieldname, keep_leading_whitespace) {
}
// TODO: Break out setters and getter into their own functions.
exports.stream_name = get_or_set('stream');
exports.topic = get_or_set('subject');
exports.stream_name = get_or_set('stream_message_recipient_stream');
exports.topic = get_or_set('stream_message_recipient_topic');
// We can't trim leading whitespace in `compose_textarea` because
// of the indented syntax for multi-line code blocks.
exports.message_content = get_or_set('compose-textarea', true);