From ad86901f0bbaf9df71e231750cf4fc1f82c244c5 Mon Sep 17 00:00:00 2001 From: HansPinckaers Date: Thu, 7 Apr 2011 21:18:49 +0200 Subject: [PATCH] online counter now working --- static/js/pad_userlist.js | 15 +++++++++++++++ static/padhtml | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/static/js/pad_userlist.js b/static/js/pad_userlist.js index 49ebf52e9..d11049042 100644 --- a/static/js/pad_userlist.js +++ b/static/js/pad_userlist.js @@ -468,6 +468,19 @@ var paduserlist = (function() { } updateInviteNotice(); + + console.log(self.updateNumberOfOnlineUsers()); + }, + updateNumberOfOnlineUsers: function(){ + var online = 1; // you are always online! + for(var i=0;i
  • - 1 + 1