merge with master

This commit is contained in:
karolinaszczur 2013-09-25 12:24:02 +02:00
commit 159bfdf3fc
4 changed files with 11 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -53,6 +53,15 @@ module.exports = HumanModel.define({
return this.name || this.jid;
}
},
displayUnreadCount: {
deps: ['unreadCount'],
fn: function () {
if (this.unreadCount > 0) {
return this.unreadCount.toString();
}
return '';
}
},
formattedTZO: {
deps: ['timezoneOffset', 'displayName'],
fn: function () {

View File

@ -45,7 +45,6 @@ module.exports = HumanModel.define({
deps: ['created'],
fn: function () {
if (this.created) {
console.log(this.created);
var month = this.created.getMonth();
var day = this.created.getDate();
var hour = this.created.getHours();

View File

@ -18,7 +18,7 @@ module.exports = HumanView.extend({
textBindings: {
displayName: '.name',
status: '.status',
unreadCount: '.unread'
displayUnreadCount: '.unread'
},
srcBindings: {
avatar: '.avatar'