compose.start: Reformat default opts

(imported from commit e0266265dbe81d19f3a666b2f822dffd2d8793d5)
This commit is contained in:
Keegan McAllister 2012-10-31 17:08:44 -04:00
parent adab0c1880
commit fcf21177fe
1 changed files with 6 additions and 6 deletions

View File

@ -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);