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) {
|
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…
Add table
Add a link
Reference in a new issue