mirror of https://github.com/zulip/zulip.git
compose.start: Reformat default opts
(imported from commit e0266265dbe81d19f3a666b2f822dffd2d8793d5)
This commit is contained in:
parent
adab0c1880
commit
fcf21177fe
|
@ -4,12 +4,12 @@ var exports = {};
|
||||||
var is_composing_message = false;
|
var is_composing_message = false;
|
||||||
|
|
||||||
exports.start = function (msg_type, opts) {
|
exports.start = function (msg_type, opts) {
|
||||||
opts = $.extend({ 'message_type': msg_type,
|
opts = $.extend({ message_type: msg_type,
|
||||||
'stream': '',
|
stream: '',
|
||||||
'subject': '',
|
subject: '',
|
||||||
'huddle_recipient': '',
|
huddle_recipient: '',
|
||||||
'message': '' },
|
message: ''
|
||||||
opts);
|
}, opts);
|
||||||
|
|
||||||
$("#stream").val(opts.stream);
|
$("#stream").val(opts.stream);
|
||||||
$("#subject").val(opts.subject);
|
$("#subject").val(opts.subject);
|
||||||
|
|
Loading…
Reference in New Issue