[mw-devel] MW3 r1189 - trunk/webclient

dez at sucs.org dez at sucs.org
Thu Oct 7 23:15:13 BST 2010


Author: dez
Date: 2010-10-07 23:15:13 +0100 (Thu, 07 Oct 2010)
New Revision: 1189

Modified:
   trunk/webclient/mw.css
   trunk/webclient/say.js
Log:
Adds support for .who
Narrows scope of table selector in CSS to prevent it affecting the login box


Modified: trunk/webclient/mw.css
===================================================================
--- trunk/webclient/mw.css	2010-10-07 21:38:16 UTC (rev 1188)
+++ trunk/webclient/mw.css	2010-10-07 22:15:13 UTC (rev 1189)
@@ -1,4 +1,4 @@
-#textlist, #sayit, table {
+#textlist, #sayit, #textlist table {
 	font-family: Monaco, monospace;
 	font-size: 10pt;
 }
@@ -11,7 +11,7 @@
 	white-space: pre-wrap;
 }
 
-table {
+#textlist table {
 	margin: 0;
 	padding: 0;
 }
@@ -64,7 +64,7 @@
 /* * Term Colours (Silver on Black)                * */
 /* ************************************************* */
 
-#textlist, table {
+#textlist, #textlist table {
 	background: #000000;
 	color: #d6d6d6;
 }

Modified: trunk/webclient/say.js
===================================================================
--- trunk/webclient/say.js	2010-10-07 21:38:16 UTC (rev 1188)
+++ trunk/webclient/say.js	2010-10-07 22:15:13 UTC (rev 1189)
@@ -94,7 +94,14 @@
 
 function sendSay()
 {
-	var what = "say "+$('#sayit').val();
+	text = $('#sayit').val();
+	if (text.substr(0, 4)==".who") {
+		sendCmdHandle('who', drawWho);
+		$('#sayit').val( "" );
+		return false;
+	}
+
+	var what = "say "+text;
 	$.getJSON("send.php", {send: what}, function(data, stats) {
 			$('#sayit').val( "" );
 		});




More information about the mw-devel mailing list