From 321d550d432c8d3531d77a06bf668a9589c93b20 Mon Sep 17 00:00:00 2001
From: John McLear <john@mclear.co.uk>
Date: Mon, 29 Dec 2014 01:20:28 +0100
Subject: [PATCH] second fix for user list issue on #2413

---
 src/static/js/pad_userlist.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/static/js/pad_userlist.js b/src/static/js/pad_userlist.js
index 595de92a2..d306256a2 100644
--- a/src/static/js/pad_userlist.js
+++ b/src/static/js/pad_userlist.js
@@ -468,7 +468,7 @@ var paduserlist = (function()
 
       self.setMyUserInfo(myInitialUserInfo);
 
-      $('#editbar [data-key=showusers] > a').append('<span id="online_count">1</span>');
+      if($('#online_count').length === 0) $('#editbar [data-key=showusers] > a').append('<span id="online_count">1</span>');
 
       $("#otheruserstable tr").remove();
 
-- 
GitLab