fix for IE
--- trunk/speeqewebclient/scripts/app.js 2008-12-01 16:55:06 UTC (rev 144)
+++ trunk/speeqewebclient/scripts/app.js 2008-12-01 21:48:44 UTC (rev 145)
@@ -101,7 +101,7 @@
null,
null);
//join the chat room
- app.joinchat(app._chatroom)
+ app.joinchat(app._chatroom);
}
else if (status == Strophe.Status.DISCONNECTED)
@@ -166,6 +166,7 @@
nickname);
}
+
this._chat.join();
this._chatroom_view.displayJoiningStatus();
@@ -280,6 +281,7 @@
var my_app = app;
$(stanza).find("x").each( function(i,xquery) {
+
//Handle only MUC user protocol
var xmlns = $(xquery).attr("xmlns");
--- trunk/speeqewebclient/scripts/chat.js 2008-12-01 16:55:06 UTC (rev 144)
+++ trunk/speeqewebclient/scripts/chat.js 2008-12-01 21:48:44 UTC (rev 145)
@@ -21,7 +21,6 @@
password = arguments[0];
}
this._nick = this._nick.replace("@"+Speeqe.XMPP_DOMAIN,"");
-
var msg = Strophe.xmlElement("presence", [
["from", this._connection.jid + "/" + this._connection.resource],
["to", this._from + "/" + this._nick]
@@ -42,16 +41,16 @@
leave: function ()
{
presence = Strophe.xmlElement("presence", [
- ["type",
- "unavailable"],
- ["from",
- this._connection.jid + "/" + this._connection.resource],
- ["to",
- this._from + "/" + this._nick]
- ]);
+ ["type",
+ "unavailable"],
+ ["from",
+ this._connection.jid + "/" + this._connection.resource],
+ ["to",
+ this._from + "/" + this._nick]
+ ]);
x = Strophe.xmlElement("x", [
- ["xmlns", Strophe.NS.MUC]
- ]);
+ ["xmlns", Strophe.NS.MUC]
+ ]);
presence.appendChild(x);
this._connection.send(presence);
@@ -96,7 +95,7 @@
"/unban":this.unBanUser,
"/nick":this.changeNick,
"/join":this.newRoom,
- "/help":this.helpDialog,
+ "/help":this.helpDialog
};
var cmdArray = text.split(" ");
--- trunk/speeqewebclient/scripts/client.js 2008-12-01 16:55:06 UTC (rev 144)
+++ trunk/speeqewebclient/scripts/client.js 2008-12-01 21:48:44 UTC (rev 145)
@@ -57,8 +57,8 @@
return true;
};
-
this.init = function () {
+
var my_client = this;
$(document).ready(function(){
--- trunk/speeqewebclient/scripts/helpdialog.js 2008-12-01 16:55:06 UTC (rev 144)
+++ trunk/speeqewebclient/scripts/helpdialog.js 2008-12-01 21:48:44 UTC (rev 145)
@@ -97,11 +97,12 @@
var windowHeight = document.documentElement.clientHeight;
var popupHeight = $("#popupContact").height();
var popupWidth = $("#popupContact").width();
+
//centering
$("#popupContact").css({
- "position": "absolute",
+ "position": "absolute",
"top": (windowHeight/2-popupHeight/2)+scrollTop,
- "left": windowWidth/2-popupWidth/2
- });
+ "left": windowWidth/2-popupWidth/2
+ });
};