Update the window title when a group title or contact name changes

This commit is contained in:
lilia 2015-06-03 17:23:55 -07:00
parent d26c13b155
commit 3d1df790a5

View file

@ -31,6 +31,7 @@
},
initialize: function(options) {
this.listenTo(this.model, 'destroy', this.stopListening);
this.listenTo(this.model, 'change:name', this.updateTitle);
this.render();
@ -181,6 +182,10 @@
return m;
}
});
},
updateTitle: function() {
this.$('.conversation-title').text(this.model.getTitle());
}
});
})();