Update the window title when a group title or contact name changes
This commit is contained in:
parent
d26c13b155
commit
3d1df790a5
1 changed files with 5 additions and 0 deletions
|
@ -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());
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
|
Loading…
Reference in a new issue