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;
|
||||
|
||||
exports.start = function (msg_type, opts) {
|
||||
opts = $.extend({ 'message_type': msg_type,
|
||||
'stream': '',
|
||||
'subject': '',
|
||||
'huddle_recipient': '',
|
||||
'message': '' },
|
||||
opts);
|
||||
opts = $.extend({ message_type: msg_type,
|
||||
stream: '',
|
||||
subject: '',
|
||||
huddle_recipient: '',
|
||||
message: ''
|
||||
}, opts);
|
||||
|
||||
$("#stream").val(opts.stream);
|
||||
$("#subject").val(opts.subject);
|
||||
|
|
Loading…
Reference in New Issue