mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-31 19:02:59 +01:00
Fix #online_count
Rather dirty, but works.
This commit is contained in:
parent
706ee1f866
commit
46ef83d710
1 changed files with 12 additions and 6 deletions
|
@ -602,7 +602,13 @@ var paduserlist = (function()
|
|||
online++;
|
||||
}
|
||||
}
|
||||
$("#online_count").text(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);
|
||||
|
||||
return online;
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue