[mw-devel] MW3 r1195 - trunk/webclient

dez at sucs.org dez at sucs.org
Fri Oct 8 16:00:15 BST 2010


Author: dez
Date: 2010-10-08 16:00:14 +0100 (Fri, 08 Oct 2010)
New Revision: 1195

Modified:
   trunk/webclient/mw.css
   trunk/webclient/say.js
Log:
Stops flagg's whining about Web MW not working properly in Opera (by adding a clear: both to the msgpoll class)
Fixes a bug in the display of lines containing colour - an extra nested <span> is required inside msg_content


Modified: trunk/webclient/mw.css
===================================================================
--- trunk/webclient/mw.css	2010-10-08 14:37:38 UTC (rev 1194)
+++ trunk/webclient/mw.css	2010-10-08 15:00:14 UTC (rev 1195)
@@ -49,6 +49,10 @@
 	float: right;
 }
 
+.msgpoll {
+	clear: both;
+}
+
 .msg_poster {
 	clear: both;
 	float: left;

Modified: trunk/webclient/say.js
===================================================================
--- trunk/webclient/say.js	2010-10-08 14:37:38 UTC (rev 1194)
+++ trunk/webclient/say.js	2010-10-08 15:00:14 UTC (rev 1195)
@@ -54,8 +54,8 @@
 
 				/* Detect username */
 				if (escapedMsg.substr(0, msg[one].username.length)==msg[one].username) {
-					escapedMsg = escapedMsg.replace(msg[one].username, "<span class='msg_poster'>"+msg[one].username+"</span><span class='msg_content'>");
-					escapedMsg = escapedMsg+"</span>";
+					escapedMsg = escapedMsg.replace(msg[one].username, "<span class='msg_poster'>"+msg[one].username+"</span><span class='msg_content'><span>");
+					escapedMsg = escapedMsg+"</span></span>";
 				}
 
 				/* Replace colour codes with appropriate span tags */				




More information about the mw-devel mailing list