From 4a2f82a7d6306aa9bed705d0eeea9930f194ff74 Mon Sep 17 00:00:00 2001 From: Arthur Mayer Date: Tue, 15 Mar 2011 23:56:22 +0100 Subject: [PATCH] messagettl for chat also in seconds :) --- configuration.txt | 4 ++-- web/js/map.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/configuration.txt b/configuration.txt index 4b4b7b70..18434cf4 100644 --- a/configuration.txt +++ b/configuration.txt @@ -72,8 +72,8 @@ web: showchatwindow: true allowwebchat: true - webchat-interval: 1000 - messagettl: 15000 + webchat-interval: 5 + messagettl: 15 showplayerfacesonmap: true showplayerfacesinmenu: true diff --git a/web/js/map.js b/web/js/map.js index 3a638188..67dd0cc3 100644 --- a/web/js/map.js +++ b/web/js/map.js @@ -449,7 +449,7 @@ DynMap.prototype = { messageRow.append(playerIconContainer,playerNameContainer,playerMessageContainer); //messageRow.append(playerIconContainer,playerWorldContainer,playerGroupContainer,playerNameContainer,playerMessageContainer); - setTimeout(function() { messageRow.remove(); }, me.options.messagettl); + setTimeout(function() { messageRow.remove(); }, (me.options.messagettl * 1000)); messagelist.append(messageRow); me.messagelist.show();