diff options
Diffstat (limited to 'pages')
-rw-r--r-- | pages/chat.php | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/pages/chat.php b/pages/chat.php index a1870a6..4f10a1c 100644 --- a/pages/chat.php +++ b/pages/chat.php @@ -22,6 +22,7 @@ if (!$accepted) { var lastID = 1;
//Internet Explorer doesn't support "const"
//CONSTANTS: ...
+var channelTimerDelay = 30000;
var chatTimerDelayUpper = 9000;
var chatTimerDelayLower = 2000;
var chatTimerDelayDefault = 5000;
@@ -45,6 +46,13 @@ function getChatTimer() { //addChatMessage("Debug", "Chat timer called!");
}
+pollChannelListTimer();
+function pollChannelListTimer() {
+ setTimeout("pollChannelListTimer()", channelTimerDelay);
+
+ pollChannelList();
+}
+
var firstGetChat = true;
function getChatDone(data) {
var newChats = false;
@@ -288,7 +296,7 @@ function pollChannelListDone(data) { function channelListShow(JO) {
console.log("Formating channelList");
- var p = "<table class='membersList score' style='max-height:400px; width:220px; background-color:transparent; '>";
+ var p = "<table class='membersList score' style='border-style:none; max-height:400px; width:220px; background-color:transparent; '>";
console.log('beginloop');
@@ -303,9 +311,11 @@ function channelListShow(JO) { styleClass = 'border-top: 6px solid #777799;';
}
}
-
+
+ // u.secFromLastActive could be used in here someplace..
+
if (u.wallEmblem == undefined) u.wallEmblem = 'blank.png';
- p = p+ "<tr style='"+styleClass+" background-color: "+u.background+"; color:"+u.displayColor+";' title='Last Active: "+u.dateLastActive+"'>";
+ p = p+ "<tr style='"+styleClass+" background-color: "+u.background+"; color:"+u.displayColor+";' title=''>";
p = p+ "<td style='vertical-align: middle;width:100px;'>";
p = p+ " <div class='grid_td' style='float:left; width:35px; height:35px; background:"+u.wallColor+" url("+linkEmblem(u.wallEmblem, u.wallOrientation)+");'>";
@@ -408,7 +418,7 @@ $(function() { function onChatWindowShown()
{
chatTimerDelay = chatTimerDelayDefault;
- getChatTimer();
+ getChat();
}
function onChatWindowHidden()
|