Open a group's view after it's created

This commit is contained in:
lilia 2014-10-14 21:35:40 -07:00
parent 320d1f18ae
commit 43f4f6cf99

View file

@ -38,7 +38,8 @@ var Whisper = Whisper || {};
var name = this.$el.find('input.name').val();
var thread = Whisper.Threads.createGroup(numbers, name);
thread.sendMessage(this.$el.find('input.send-message').val());
// close this, select the new thread
this.remove();
thread.trigger('render');
},
render: function() {