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

pull/749/head
lilia 10 years ago
parent d26c13b155
commit 3d1df790a5

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

Loading…
Cancel
Save