From dc15daaa40f898d20711b8ae47c8cc13109f395e Mon Sep 17 00:00:00 2001 From: HansPinckaers Date: Thu, 7 Apr 2011 21:34:06 +0200 Subject: [PATCH] broke ie/ff working again --- static/js/pad_modals.js | 2 -- static/js/pad_userlist.js | 9 +++++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/static/js/pad_modals.js b/static/js/pad_modals.js index 183b7ff3d..0d0f57f0e 100644 --- a/static/js/pad_modals.js +++ b/static/js/pad_modals.js @@ -59,7 +59,6 @@ var padmodals = (function() { init: function() { self.initFeedback(); self.initShareBox(); - console.log("self.initShareBox"); }, initFeedback: function() { /*var emailField = $("#feedbackbox-email"); @@ -81,7 +80,6 @@ var padmodals = (function() { initShareBox: function() { $("#sharebutton").click(function() { self.showShareBox(); - console.log("share"); }); $("#sharebox-hide").click(function() { self.hideModal(); diff --git a/static/js/pad_userlist.js b/static/js/pad_userlist.js index d11049042..3e476fad3 100644 --- a/static/js/pad_userlist.js +++ b/static/js/pad_userlist.js @@ -467,9 +467,9 @@ var paduserlist = (function() { rowManager.insertRow(newIndex, userData); } - updateInviteNotice(); + updateInviteNotice(); - console.log(self.updateNumberOfOnlineUsers()); + self.updateNumberOfOnlineUsers(); }, updateNumberOfOnlineUsers: function(){ var online = 1; // you are always online! @@ -480,6 +480,7 @@ var paduserlist = (function() { } } $("#online_count").text(online); + return online; }, userLeave: function(info) { @@ -510,9 +511,9 @@ var paduserlist = (function() { }, 8000); // how long to wait userData.leaveTimer = thisLeaveTimer; } - updateInviteNotice(); + updateInviteNotice(); - console.log(self.updateNumberOfOnlineUsers()); + self.updateNumberOfOnlineUsers(); }, showGuestPrompt: function(userId, displayName) { if (knocksToIgnore[userId]) {