|
@@ -935,7 +935,7 @@
|
|
createChatBox: function (jid, data) {
|
|
createChatBox: function (jid, data) {
|
|
var box, view;
|
|
var box, view;
|
|
if (this.isChatRoom(jid)) {
|
|
if (this.isChatRoom(jid)) {
|
|
- box = new xmppchat.ChatRoom(jid, xmppchat.fullname.split(' ')[0]);
|
|
|
|
|
|
+ box = new xmppchat.ChatRoom(jid, xmppchat.fullname);
|
|
view = new xmppchat.ChatRoomView({
|
|
view = new xmppchat.ChatRoomView({
|
|
'model': box
|
|
'model': box
|
|
});
|
|
});
|
|
@@ -1664,12 +1664,12 @@
|
|
model: new xmppchat.ControlBox({'id':'controlbox', 'jid':'controlbox'})
|
|
model: new xmppchat.ControlBox({'id':'controlbox', 'jid':'controlbox'})
|
|
}).render();
|
|
}).render();
|
|
|
|
|
|
- $(document).bind('xmpp.disconnected', $.proxy(function (ev, conn) {
|
|
|
|
|
|
+ $(document).bind('jarnxmpp.disconnected', $.proxy(function (ev, conn) {
|
|
console.log("Connection Failed :(");
|
|
console.log("Connection Failed :(");
|
|
}, this));
|
|
}, this));
|
|
|
|
|
|
- $(document).unbind('xmpp.connected');
|
|
|
|
- $(document).bind('xmpp.connected', $.proxy(function (ev, connection) {
|
|
|
|
|
|
+ $(document).unbind('jarnxmpp.connected');
|
|
|
|
+ $(document).bind('jarnxmpp.connected', $.proxy(function (ev, connection) {
|
|
this.connection = connection
|
|
this.connection = connection
|
|
this.connection.xmlInput = function (body) { console.log(body); };
|
|
this.connection.xmlInput = function (body) { console.log(body); };
|
|
this.connection.xmlOutput = function (body) { console.log(body); };
|
|
this.connection.xmlOutput = function (body) { console.log(body); };
|