Make conversations open when they are created
This commit is contained in:
parent
230d24a69e
commit
ef066ea9d2
2 changed files with 2 additions and 0 deletions
|
@ -16,6 +16,7 @@ var Whisper = Whisper || {};
|
|||
|
||||
this.listenTo(this.model, 'change', this.render); // auto update
|
||||
this.listenTo(this.model, 'destroy', this.remove); // auto update
|
||||
this.listenTo(this.model, 'render', this.open);
|
||||
},
|
||||
|
||||
open: function(e) {
|
||||
|
|
|
@ -47,6 +47,7 @@ var Whisper = Whisper || {};
|
|||
var message_input = this.$el.find('input.send-message');
|
||||
thread.sendMessage(message_input.val());
|
||||
this.remove();
|
||||
thread.trigger('render');
|
||||
}
|
||||
} catch(ex) {}
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue