[mw-devel] MW3 r1196 - trunk/webclient
dez at sucs.org
dez at sucs.org
Fri Oct 8 16:35:04 BST 2010
Author: dez
Date: 2010-10-08 16:35:03 +0100 (Fri, 08 Oct 2010)
New Revision: 1196
Modified:
trunk/webclient/say.js
Log:
Fixes the who list - had been broken by the missing var declaration
Modified: trunk/webclient/say.js
===================================================================
--- trunk/webclient/say.js 2010-10-08 15:00:14 UTC (rev 1195)
+++ trunk/webclient/say.js 2010-10-08 15:35:03 UTC (rev 1196)
@@ -158,25 +158,21 @@
function drawWho(data, stat)
{
- var count = 0;
- text = "<hr /><table cellspacing=\"0\" cellpadding=\"0\"><tbody>";
- text += "<tr><th style=\"width: 10em;\">Name</th><th style=\"width: 6em;\">Idle</th><th>What...</th></tr>";
- for (person in data) {
- line = "";
- line += "<td>"+data[person].username+"</td>";
- line += "<td>"+drawTime(data[person].idle)+"</td>";
- line += "<td>Room "+data[person].channel+"</td>";
- text += "<tr>"+line+"</tr>";
- }
- text += "</tbody></table><hr />";
- addmsg("who", text);
+ var text = "<hr /><table cellspacing=\"0\" cellpadding=\"0\"><tbody>";
+ text += "<tr><th style=\"width: 10em;\">Name</th><th style=\"width: 6em;\">Idle</th><th>What...</th></tr>";
+ for (person in data) {
+ line = "<td>"+data[person].username+"</td>";
+ line += "<td>"+drawTime(data[person].idle)+"</td>";
+ line += "<td>Room "+data[person].channel+"</td>";
+ text += "<tr>"+line+"</tr>";
+ }
+ text += "</tbody></table><hr />";
+ addmsg("who", text);
}
+
function drawWhoList(data, stat)
{
- var count = 0;
- text = "<hr /><table cellspacing=\"0\" cellpadding=\"0\"><tbody>";
- text += "<tr><th style=\"width: 10em;\">Name</th><th style=\"width: 6em;\">Idle</th><th>What...</th></tr>";
for (person in data) {
$("#wholist").append("<li id=\"who_"+data[person].username+"\">"+data[person].username+"</li");
}
More information about the mw-devel
mailing list