Commit 219089d2 authored by JC Brand's avatar JC Brand

Specify Chatboxes collection's contained models

parent f28e20dc
...@@ -600,7 +600,6 @@ ...@@ -600,7 +600,6 @@
ctx.drawImage(img,0,0, 35*ratio, 35) ctx.drawImage(img,0,0, 35*ratio, 35)
} }
img.src = img_src; img.src = img_src;
this.insertClientStoredMessages(); this.insertClientStoredMessages();
return this; return this;
}, },
...@@ -1077,7 +1076,9 @@ ...@@ -1077,7 +1076,9 @@
} }
}); });
xmppchat.ChatBoxes = Backbone.Collection.extend(); xmppchat.ChatBoxes = Backbone.Collection.extend({
model: xmppchat.ChatBox,
});
xmppchat.ChatBoxesView = Backbone.View.extend({ xmppchat.ChatBoxesView = Backbone.View.extend({
el: '#collective-xmpp-chat-data', el: '#collective-xmpp-chat-data',
...@@ -1214,7 +1215,7 @@ ...@@ -1214,7 +1215,7 @@
view.messageReceived(message); view.messageReceived(message);
xmppchat.roster.addResource(partner_jid, resource); xmppchat.roster.addResource(partner_jid, resource);
}, this)); }, this));
return undefined; return true;
} else if (!view.isVisible()) { } else if (!view.isVisible()) {
this.showChat(partner_jid); this.showChat(partner_jid);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment