mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 07:56:16 -04:00
Fix user count
Still dirty, but really works.
This commit is contained in:
parent
4569e91592
commit
5008ad10c6
2 changed files with 6 additions and 11 deletions
|
@ -468,6 +468,8 @@ var paduserlist = (function()
|
|||
|
||||
self.setMyUserInfo(myInitialUserInfo);
|
||||
|
||||
$('#editbar [data-key=showusers] > a').append('<span id="online_count">1</span>');
|
||||
|
||||
$("#otheruserstable tr").remove();
|
||||
|
||||
if (pad.getUserIsGuest())
|
||||
|
@ -602,13 +604,8 @@ var paduserlist = (function()
|
|||
online++;
|
||||
}
|
||||
}
|
||||
var $btn = $("#editbar [data-key=showusers] > a")
|
||||
, $counter = $('#online_count', $btn)
|
||||
if(!$counter.length) {
|
||||
$counter = $('<span id="online_count">')
|
||||
$btn.append($counter)
|
||||
}
|
||||
$counter.text(online);
|
||||
|
||||
$('#online_count').text(online);
|
||||
|
||||
return online;
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue